summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/channel-cursor.c2
-rw-r--r--src/channel-display.c2
-rw-r--r--src/spice-channel-cache.h2
-rw-r--r--src/spice-session.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/channel-cursor.c b/src/channel-cursor.c
index 6a9d60a..0765209 100644
--- a/src/channel-cursor.c
+++ b/src/channel-cursor.c
@@ -91,7 +91,7 @@ static void spice_cursor_channel_finalize(GObject *obj)
SpiceCursorChannel *channel = SPICE_CURSOR_CHANNEL(obj);
SpiceCursorChannelPrivate *c = channel->priv;
- g_clear_pointer(&c->cursors, cache_unref);
+ g_clear_pointer(&c->cursors, cache_free);
if (G_OBJECT_CLASS(spice_cursor_channel_parent_class)->finalize)
G_OBJECT_CLASS(spice_cursor_channel_parent_class)->finalize(obj);
diff --git a/src/channel-display.c b/src/channel-display.c
index 9f9d62a..46e9829 100644
--- a/src/channel-display.c
+++ b/src/channel-display.c
@@ -142,7 +142,7 @@ static void spice_display_channel_finalize(GObject *object)
clear_surfaces(SPICE_CHANNEL(object), FALSE);
g_hash_table_unref(c->surfaces);
clear_streams(SPICE_CHANNEL(object));
- g_clear_pointer(&c->palettes, cache_unref);
+ g_clear_pointer(&c->palettes, cache_free);
if (G_OBJECT_CLASS(spice_display_channel_parent_class)->finalize)
G_OBJECT_CLASS(spice_display_channel_parent_class)->finalize(object);
diff --git a/src/spice-channel-cache.h b/src/spice-channel-cache.h
index 6e2d084..238ceb7 100644
--- a/src/spice-channel-cache.h
+++ b/src/spice-channel-cache.h
@@ -128,7 +128,7 @@ static inline void cache_clear(display_cache *cache)
g_hash_table_remove_all(cache->table);
}
-static inline void cache_unref(display_cache *cache)
+static inline void cache_free(display_cache *cache)
{
g_hash_table_unref(cache->table);
}
diff --git a/src/spice-session.c b/src/spice-session.c
index 85640a5..c673fa2 100644
--- a/src/spice-session.c
+++ b/src/spice-session.c
@@ -372,7 +372,7 @@ spice_session_finalize(GObject *gobject)
g_strfreev(s->secure_channels);
g_free(s->shared_dir);
- g_clear_pointer(&s->images, cache_unref);
+ g_clear_pointer(&s->images, cache_free);
glz_decoder_window_destroy(s->glz_window);
g_clear_pointer(&s->pubkey, g_byte_array_unref);