summaryrefslogtreecommitdiffstats
path: root/common/glib-ectomy.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/glib-ectomy.c')
-rw-r--r--common/glib-ectomy.c2
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);
}