diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/menus/edition.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/menus/edition.c b/src/gui/menus/edition.c index b78c084..c9fe991 100644 --- a/src/gui/menus/edition.c +++ b/src/gui/menus/edition.c @@ -231,7 +231,8 @@ static void mcb_edition_switch_numeric_operand(GtkMenuItem *menuitem, gpointer u g_object_unref(G_OBJECT(instr)); - g_loaded_binary_add_to_collection(binary, G_DB_ITEM(switcher)); + if (switcher != NULL) + g_loaded_binary_add_to_collection(binary, G_DB_ITEM(switcher)); g_object_unref(G_OBJECT(proc)); g_object_unref(G_OBJECT(binary)); |