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

Fixed a crashing bug

This commit is contained in:
dan
1999-12-03 02:59:30 +00:00
parent 3a8499143f
commit 8800cd0b67

View File

@@ -1255,6 +1255,8 @@ wDockDestroy(WDock *dock)
free(dock->icon_array); free(dock->icon_array);
if (dock->menu && dock->type!=WM_CLIP) if (dock->menu && dock->type!=WM_CLIP)
wMenuDestroy(dock->menu, True); wMenuDestroy(dock->menu, True);
if (dock->screen_ptr->last_dock == dock)
dock->screen_ptr->last_dock = NULL;
free(dock); free(dock);
} }