diff options
Diffstat (limited to 'src/gtkext')
-rw-r--r-- | src/gtkext/gtkbinarystrip.c | 4 | ||||
-rw-r--r-- | src/gtkext/gtkbufferview.c | 7 | ||||
-rw-r--r-- | src/gtkext/gtkgraphview.c | 1 | ||||
-rw-r--r-- | src/gtkext/gtkstatusstack.c | 4 |
4 files changed, 12 insertions, 4 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; diff --git a/src/gtkext/gtkbufferview.c b/src/gtkext/gtkbufferview.c index caa7eb0..1f4399a 100644 --- a/src/gtkext/gtkbufferview.c +++ b/src/gtkext/gtkbufferview.c @@ -558,6 +558,7 @@ static gboolean gtk_buffer_view_key_press(GtkWidget *widget, GdkEventKey *event) static gboolean gtk_buffer_view_query_tooltip(GtkWidget *widget, gint x, gint y, gboolean keyboard, GtkTooltip *tooltip) { gboolean result; /* Bilan à retourner */ + GBinFormat *format; /* Format du fichier binaire */ GtkBufferView *view; /* Autre version du composant */ gint real_x; /* Abscisse absolue réelle */ gint real_y; /* Ordonnée absolue réelle */ @@ -565,7 +566,6 @@ static gboolean gtk_buffer_view_query_tooltip(GtkWidget *widget, gint x, gint y, GObject *creator; /* Créateur à l'orgine du seg. */ virt_t virt; /* Adresse virtuelle */ vmpa2t addr; /* Adresse de destination */ - GBinFormat *format; /* Format du fichier binaire */ GBinSymbol *target_sym; /* Symbole présent à l'adresse */ GBinSymbol *next_sym; /* Symbole suivant l'adresse */ GCodeBuffer *buffer; /* Tampon où lire les lignes */ @@ -581,6 +581,8 @@ static gboolean gtk_buffer_view_query_tooltip(GtkWidget *widget, gint x, gint y, result = FALSE; + format = NULL; + view = GTK_BUFFER_VIEW(widget); /* Récupération de la destination pointée */ @@ -692,6 +694,9 @@ static gboolean gtk_buffer_view_query_tooltip(GtkWidget *widget, gint x, gint y, g_object_unref(G_OBJECT(line)); */ + if (format != NULL) + g_object_unref(G_OBJECT(format)); + return result; } diff --git a/src/gtkext/gtkgraphview.c b/src/gtkext/gtkgraphview.c index 3136cf4..fc307a2 100644 --- a/src/gtkext/gtkgraphview.c +++ b/src/gtkext/gtkgraphview.c @@ -782,6 +782,7 @@ static void gtk_graph_view_define_main_address(GtkGraphView *view, const vmpa2t change_editor_items_current_view_content(GTK_VIEW_PANEL(view)); + g_object_unref(G_OBJECT(format)); } diff --git a/src/gtkext/gtkstatusstack.c b/src/gtkext/gtkstatusstack.c index 930fa4a..ac1716e 100644 --- a/src/gtkext/gtkstatusstack.c +++ b/src/gtkext/gtkstatusstack.c @@ -609,9 +609,7 @@ void gtk_status_stack_update_current_instruction(GtkStatusStack *stack, const GL gssuci_useless: - //g_object_unref(G_OBJECT(format)); - - ; + g_object_unref(G_OBJECT(format)); } |