forked from e16/e16
1
0
Fork 0

Fix potential crash when destroying menus.

Could be triggered by right click on pager, select settings.

SVN revision: 52549
This commit is contained in:
Kim Woelders 2010-09-21 18:49:32 +00:00
parent 1c0f62e99f
commit 28450a10ee
1 changed files with 2 additions and 0 deletions

View File

@ -628,6 +628,8 @@ MenuEmpty(Menu * m, int destroying)
FreePmapMask(&(mi->pmm[j]));
if (!destroying && mi->win)
EDestroyWindow(mi->win);
else
EventCallbackUnregister(mi->win, MenuItemHandleEvents, mi);
ImageclassFree(mi->icon_iclass);
Efree(mi);
}