summaryrefslogtreecommitdiff
path: root/src/glibext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-02-15 22:58:40 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-02-15 22:58:40 (GMT)
commit16242be5838a77690946cbb2f30b2e89f2df0b94 (patch)
treed3c2b2725f41f2a0d45ae7f32e2ab9cb1886b230 /src/glibext
parent5ed40f0afbd58fbfdf05be7b2a10ab8d0819759f (diff)
Displayed tooltips for graph view edges.
Diffstat (limited to 'src/glibext')
-rw-r--r--src/glibext/gbuffercache.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/glibext/gbuffercache.c b/src/glibext/gbuffercache.c
index e4ddf06..8d02dd8 100644
--- a/src/glibext/gbuffercache.c
+++ b/src/glibext/gbuffercache.c
@@ -609,26 +609,24 @@ static void g_buffer_cache_dispose(GBufferCache *cache)
cache_info *info; /* Accès direct à une ligne */
size_t j; /* Boucle de parcours #2 */
- if (cache->content != NULL)
- g_object_unref(G_OBJECT(cache->content));
+ g_clear_object(&cache->content);
for (i = 0; i < cache->used; i++)
{
info = &cache->lines[i];
if (info->count == 1)
- g_object_unref(G_OBJECT(info->generator.instance));
+ g_clear_object(&info->generator.instance);
else
for (j = 0; j < info->count; j++)
- g_object_unref(G_OBJECT(info->generators[j].instance));
+ g_clear_object(&info->generators[j].instance);
- if (info->line)
- g_object_unref(G_OBJECT(info->line));
+ g_clear_object(&info->line);
}
- g_object_unref(G_OBJECT(cache->tracker));
+ g_clear_object(&cache->tracker);
G_OBJECT_CLASS(g_buffer_cache_parent_class)->dispose(G_OBJECT(cache));