1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 12:58:08 +01:00

- Replaced all free() with wfree() where appropriate

- Fixed some memory leaks
This commit is contained in:
dan
2000-10-31 14:57:22 +00:00
parent 581ab58f70
commit 497e34b6b8
72 changed files with 545 additions and 539 deletions

View File

@@ -154,7 +154,7 @@ wXDNDProcessSelection(XEvent *event)
/* final one */
WMPutInBag(items, wstrdup(retain));
total_size += strlen(retain) + 3;
free(retain);
wfree(retain);
/* now pack new string */
scr->xdestring = wmalloc(total_size);
@@ -170,7 +170,7 @@ wXDNDProcessSelection(XEvent *event)
/* unsupport object, still need more " ? tell ]d */
strcat(scr->xdestring, &tmp[5]);
}
free(tmp);
wfree(tmp);
}
WMFreeBag(items);
wDockReceiveDNDDrop(scr,event);
@@ -178,7 +178,7 @@ wXDNDProcessSelection(XEvent *event)
printf("free ");
puts(scr->xdestring);
*/
free(scr->xdestring); /* this xdestring is not from Xlib (no XFree) */
wfree(scr->xdestring); /* this xdestring is not from Xlib (no XFree) */
}
}