Commit 9564d610 authored by Debarshi Ray's avatar Debarshi Ray Committed by Christian Hergert

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.
parent 2627fee5
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment