diff options
Diffstat (limited to 'src')
-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 9c86cd6..fc502a0 100644 --- a/src/gui/editem.c +++ b/src/gui/editem.c @@ -250,7 +250,9 @@ void change_editor_items_current_binary(GObject *ref, GLoadedBinary *binary) GEditorItem *iter; /* Boucle de parcours */ GEditorItemClass *klass; /* Classe correspondante */ - g_object_ref(G_OBJECT(binary)); + if (binary != NULL) + g_object_ref(G_OBJECT(binary)); + g_object_set_data_full(ref, "current_binary", binary, g_object_unref); editem_list_for_each(iter, _editem_list) |