mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-07 06:14:13 +01:00
- Replaced all free() with wfree() where appropriate
- Fixed some memory leaks
This commit is contained in:
@@ -136,7 +136,7 @@ createPanel(Panel *p)
|
||||
} else {
|
||||
wwarning(_("could not load icon file %s"), path);
|
||||
}
|
||||
free(path);
|
||||
wfree(path);
|
||||
}
|
||||
path = LocateImage(buf2);
|
||||
if (path) {
|
||||
@@ -147,11 +147,11 @@ createPanel(Panel *p)
|
||||
} else {
|
||||
wwarning(_("could not load icon file %s"), path);
|
||||
}
|
||||
free(path);
|
||||
wfree(path);
|
||||
}
|
||||
}
|
||||
free(buf1);
|
||||
free(buf2);
|
||||
wfree(buf1);
|
||||
wfree(buf2);
|
||||
|
||||
WMMapSubwidgets(panel->scrF);
|
||||
|
||||
@@ -175,7 +175,7 @@ createPanel(Panel *p)
|
||||
} else {
|
||||
wwarning(_("could not load icon file %s"), path);
|
||||
}
|
||||
free(path);
|
||||
wfree(path);
|
||||
}
|
||||
panel->aliyB = WMCreateButton(panel->aliF, WBTOnOff);
|
||||
WMResizeWidget(panel->aliyB, 48, 48);
|
||||
@@ -190,7 +190,7 @@ createPanel(Panel *p)
|
||||
} else {
|
||||
wwarning(_("could not load icon file %s"), path);
|
||||
}
|
||||
free(path);
|
||||
wfree(path);
|
||||
}
|
||||
WMGroupButtons(panel->alinB, panel->aliyB);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user