diff options
Diffstat (limited to 'zwgc/xcut.c')
-rw-r--r-- | zwgc/xcut.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zwgc/xcut.c b/zwgc/xcut.c index 6345713..b82d9a8 100644 --- a/zwgc/xcut.c +++ b/zwgc/xcut.c @@ -157,6 +157,7 @@ xdestroygram(Display *dpy, x_gram *gram) { struct timeval now; + int i; gettimeofday(&now,NULL); if ((gram->can_die.tv_sec == 0) || @@ -174,6 +175,8 @@ xdestroygram(Display *dpy, XDestroyWindow(dpy, w); delete_gram(gram); free(gram->text); + for (i=0; i < gram->numblocks; i++) + free(gram->blocks[i].wstr); free(gram->blocks); #ifdef CMU_ZWGCPLUS if (gram->notice) |