mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-05 11:04:42 +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);
|
h->widgets = g_list_remove_link (h->widgets, d);
|
||||||
send_message (d->data, NULL, MSG_DESTROY, 0, NULL);
|
send_message (d->data, NULL, MSG_DESTROY, 0, NULL);
|
||||||
|
g_free (d->data);
|
||||||
g_list_free_1 (d);
|
g_list_free_1 (d);
|
||||||
|
|
||||||
/* widget has been deleted in runtime */
|
/* widget has been deleted in runtime */
|
||||||
|
Loading…
Reference in New Issue
Block a user