diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-02-24 21:28:29 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-02-24 21:28:29 +0000 |
commit | 3467d91677938f2c16ccc9886b9c48bf144b407d (patch) | |
tree | 921b253c9c2000cc92383c1aaa6f7d473f37fc4d /common | |
parent | d6c6e3c549fc59e25dd0869495e7b2f8c1ef999f (diff) |
Call destroy function also on cleanup
Diffstat (limited to 'common')
-rw-r--r-- | common/glib-ectomy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/glib-ectomy.c b/common/glib-ectomy.c index c8e9bd44..efc9e20d 100644 --- a/common/glib-ectomy.c +++ b/common/glib-ectomy.c @@ -201,6 +201,8 @@ void g_main_loop_quit(GMainLoop *loop) loop->bail = 1; for (w = watch_head.next; w; w = w->next) { + if (w->destroy) + w->destroy(w->user_data); watch_head.next = w->next; free(w); } |