mirror of
https://github.com/gryf/wmaker.git
synced 2026-03-02 14:35:47 +01:00
- Replaced all free() with wfree() where appropriate
- Fixed some memory leaks
This commit is contained in:
@@ -67,13 +67,13 @@ void
|
||||
WMDestroyMenuItem(WMMenuItem *item)
|
||||
{
|
||||
if (item->title)
|
||||
free(item->title);
|
||||
wfree(item->title);
|
||||
|
||||
if (item->image)
|
||||
WMReleasePixmap(item->image);
|
||||
|
||||
if (item->shortcutKey)
|
||||
free(item->shortcutKey);
|
||||
wfree(item->shortcutKey);
|
||||
|
||||
if (item->onStateImage)
|
||||
WMReleasePixmap(item->onStateImage);
|
||||
|
||||
Reference in New Issue
Block a user