diff options
Diffstat (limited to 'src/gui/editem.c')
-rw-r--r-- | src/gui/editem.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/editem.c b/src/gui/editem.c index a2d1210..5bb3045 100644 --- a/src/gui/editem.c +++ b/src/gui/editem.c @@ -250,7 +250,8 @@ void change_editor_items_current_binary(GObject *ref, GLoadedBinary *binary) GEditorItem *iter; /* Boucle de parcours */ GEditorItemClass *klass; /* Classe correspondante */ - g_object_set_data(ref, "current_binary", binary); + g_objet_ref(G_OBJECT(binary)); + g_object_set_data_full(ref, "current_binary", binary, g_object_unref); editem_list_for_each(iter, _editem_list) { @@ -329,6 +330,7 @@ static void start_moving_to_address_in_view_panel(GtkDisplayPanel *panel, const binary = gtk_display_panel_get_binary(panel); g_loaded_binary_add_to_collection(binary, G_DB_ITEM(move)); + g_objet_unref(G_OBJECT(binary)); } |