diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-11-03 14:01:38 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-11-03 14:01:38 (GMT) |
commit | e5d58e1f70405012fd8fbe8d61937f92fa3583a9 (patch) | |
tree | 29b555020a18df0e91ffd10460693bbe40bed729 /src/gtkext/gtkbinarystrip.c | |
parent | 25576d8dd565547fe1178f7faa583a36718f98f8 (diff) |
Counted references for each provided binary format.
Diffstat (limited to 'src/gtkext/gtkbinarystrip.c')
-rw-r--r-- | src/gtkext/gtkbinarystrip.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gtkext/gtkbinarystrip.c b/src/gtkext/gtkbinarystrip.c index 1cf2450..fff6a78 100644 --- a/src/gtkext/gtkbinarystrip.c +++ b/src/gtkext/gtkbinarystrip.c @@ -233,6 +233,7 @@ static void gtk_binary_strip_size_allocate(GtkWidget *widget, GtkAllocation *all strip->cursor_pos = 0; g_object_unref(G_OBJECT(layer)); + g_object_unref(G_OBJECT(format)); } @@ -290,6 +291,7 @@ static gboolean gtk_binary_strip_button_release(GtkWidget *widget, GdkEventButto } g_object_unref(G_OBJECT(layer)); + g_object_unref(G_OBJECT(format)); return FALSE; @@ -338,6 +340,7 @@ static gboolean gtk_binary_strip_draw(GtkWidget *widget, cairo_t *cr) g_portion_layer_draw(layer, context, cr, &full); g_object_unref(G_OBJECT(layer)); + g_object_unref(G_OBJECT(format)); /* Dessin de la position */ @@ -412,6 +415,7 @@ static gboolean gtk_binary_strip_query_tooltip(GtkWidget *widget, gint x, gint y result = g_portion_layer_query_tooltip(layer, x, y, &area, tooltip); g_object_unref(G_OBJECT(layer)); + g_object_unref(G_OBJECT(format)); } else result = FALSE; |