summaryrefslogtreecommitdiff
path: root/src/glibext/delayed.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-05-23 21:24:17 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-05-23 21:24:17 (GMT)
commit3d2576f58690dc3069d918f5a737192028e45f8b (patch)
treebf7ba151d4e610d693dc552adc3aa2b8f1e62c42 /src/glibext/delayed.c
parent1c96d0ae943b45f71954c1772aa94f78bafdf656 (diff)
Fixed memory leaks by destroying delayed works after processing.
Diffstat (limited to 'src/glibext/delayed.c')
-rw-r--r--src/glibext/delayed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glibext/delayed.c b/src/glibext/delayed.c
index 20f9d0f..ddd84a0 100644
--- a/src/glibext/delayed.c
+++ b/src/glibext/delayed.c
@@ -603,7 +603,7 @@ static void *g_work_group_process(GWorkGroup *group)
g_delayed_work_process(work, group->status);
- //g_object_unref(G_OBJECT(work)); // FIXME
+ g_object_unref(G_OBJECT(work));
if (g_atomic_int_dec_and_test(&group->pending))
g_cond_broadcast(&group->wait_cond);