summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2020-11-13 12:28:47 +0100
committerMilan Crha <mcrha@redhat.com>2020-11-13 12:28:47 +0100
commit6a0219f60befc1564b7b4864c1f4d1f87ff0fabe (patch)
tree5c28ca8cbada36995d4399f66e3c4d5fa60d9b55
parenta51e13c6c24eb489c62b34c74fae56f65bb36d40 (diff)
downloadevolution-data-server-6a0219f60befc1564b7b4864c1f4d1f87ff0fabe.tar.gz
EBook/CalBackend: Correct free function for the pending_operations queue
The queue holds a DispatchNode structure, which is not a GObject descendant, but the backend's dispose implementation called g_object_unref() on it.
-rw-r--r--src/addressbook/libedata-book/e-book-backend.c2
-rw-r--r--src/calendar/libedata-cal/e-cal-backend.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/addressbook/libedata-book/e-book-backend.c b/src/addressbook/libedata-book/e-book-backend.c
index d09df57af..f444bf3a5 100644
--- a/src/addressbook/libedata-book/e-book-backend.c
+++ b/src/addressbook/libedata-book/e-book-backend.c
@@ -519,7 +519,7 @@ book_backend_dispose (GObject *object)
g_hash_table_remove_all (priv->operation_ids);
while (!g_queue_is_empty (&priv->pending_operations))
- g_object_unref (g_queue_pop_head (&priv->pending_operations));
+ dispatch_node_free (g_queue_pop_head (&priv->pending_operations));
g_clear_object (&priv->blocked);
diff --git a/src/calendar/libedata-cal/e-cal-backend.c b/src/calendar/libedata-cal/e-cal-backend.c
index ec543e0f5..6c4482970 100644
--- a/src/calendar/libedata-cal/e-cal-backend.c
+++ b/src/calendar/libedata-cal/e-cal-backend.c
@@ -654,7 +654,7 @@ cal_backend_dispose (GObject *object)
g_hash_table_remove_all (priv->operation_ids);
while (!g_queue_is_empty (&priv->pending_operations))
- g_object_unref (g_queue_pop_head (&priv->pending_operations));
+ dispatch_node_free (g_queue_pop_head (&priv->pending_operations));
g_clear_object (&priv->blocked);