From: Dana Jansens Date: Wed, 3 Sep 2003 21:23:45 +0000 (+0000) Subject: remove from desktop_menus when freed X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=9102d8a64b5670aabddcf2c18895d593eb0e05d3;p=chaz%2Fopenbox remove from desktop_menus when freed --- diff --git a/openbox/client_list_menu.c b/openbox/client_list_menu.c index f272dae8..2dab84fc 100644 --- a/openbox/client_list_menu.c +++ b/openbox/client_list_menu.c @@ -74,6 +74,8 @@ static void desk_menu_destroy(ObMenu *menu, gpointer data) DesktopData *d = data; g_free(d); + + desktop_menus = g_slist_remove(desktop_menus, menu); } static void self_update(ObMenuFrame *frame, gpointer data)