[gnome-builder] egg-task-cache: Add a missing typecast
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] egg-task-cache: Add a missing typecast
- Date: Mon, 6 Mar 2017 21:59:33 +0000 (UTC)
commit 9564d6100148681c9f723f511e2c71fc2aaa0a66
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Mar 6 18:25:59 2017 +0100
egg-task-cache: Add a missing typecast
g_clear_pointer expects a GDestroyNotify, and g_hash_table_unref
doesn't exactly match the type, even though it can be used as such.
Let's explicitly typecast it, since we are doing so elsewhere.
https://bugzilla.gnome.org/show_bug.cgi?id=779660
contrib/egg/egg-task-cache.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/contrib/egg/egg-task-cache.c b/contrib/egg/egg-task-cache.c
index 0bc4598..d1830cb 100644
--- a/contrib/egg/egg-task-cache.c
+++ b/contrib/egg/egg-task-cache.c
@@ -704,7 +704,7 @@ egg_task_cache_dispose (GObject *object)
gint64 count;
count = g_hash_table_size (self->in_flight);
- g_clear_pointer (&self->in_flight, g_hash_table_unref);
+ g_clear_pointer (&self->in_flight, (GDestroyNotify)g_hash_table_unref);
EGG_COUNTER_SUB (in_flight, count);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]