mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
(del_widget): fix memory leak.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
d87a0bfe92
commit
30dbb79655
@ -951,6 +951,7 @@ del_widget (void *w)
|
||||
|
||||
h->widgets = g_list_remove_link (h->widgets, d);
|
||||
send_message (d->data, NULL, MSG_DESTROY, 0, NULL);
|
||||
g_free (d->data);
|
||||
g_list_free_1 (d);
|
||||
|
||||
/* widget has been deleted in runtime */
|
||||
|
Loading…
Reference in New Issue
Block a user