summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-11-17 08:14:35 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-11-17 08:14:35 (GMT)
commit4d771e533a6bbcda07190d24ed5d15458acb68e0 (patch)
tree49d1c37b2c64d1e30bff8860a7dcd8ba8b7d4510 /src
parent194ebd377f27499a3010b2bbd7697cb91da510a8 (diff)
Clean work queues only once.
Diffstat (limited to 'src')
-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 64f18cf..6b5ac35 100644
--- a/src/glibext/delayed.c
+++ b/src/glibext/delayed.c
@@ -885,7 +885,7 @@ static void g_work_queue_dispose(GWorkQueue *queue)
g_mutex_lock(&queue->mutex);
for (i = 0; i < queue->groups_count; i++)
- g_object_unref(G_OBJECT(queue->groups[i]));
+ g_clear_object(&queue->groups[i]);
g_mutex_unlock(&queue->mutex);