1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +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

@@ -440,7 +440,7 @@ wFrameWindowDestroy(WFrameWindow *fwin)
wCoreDestroy(fwin->core);
if (fwin->title)
free(fwin->title);
wfree(fwin->title);
for (i=0; i < (fwin->flags.single_texture ? 1 : 3); i++) {
FREE_PIXMAP(fwin->title_back[i]);
@@ -453,7 +453,7 @@ wFrameWindowDestroy(WFrameWindow *fwin)
}
}
free(fwin);
wfree(fwin);
}
@@ -1100,7 +1100,7 @@ wFrameWindowPaint(WFrameWindow *fwin)
title, titlelen);
#endif /* DRAWSTRING_PLUGIN */
free(title);
wfree(title);
if (fwin->left_button)
handleButtonExpose(&fwin->left_button->descriptor, NULL);
@@ -1247,7 +1247,7 @@ wFrameWindowChangeTitle(WFrameWindow *fwin, char *new_title)
}
if (fwin->title)
free(fwin->title);
wfree(fwin->title);
fwin->title = wstrdup(new_title);