summaryrefslogtreecommitdiff
path: root/src/gui/menus
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-08-12 15:46:55 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-08-12 15:46:55 (GMT)
commit7ced9ccef7fae0b392858b1b7f44978e1e6df1cf (patch)
treea1188ca8eb48a541ee5922b3e8b096725da04ef4 /src/gui/menus
parentfcc78751e1e733b8662fde7d5e8ac6023cb34582 (diff)
Added a batch mode and a way to load binaries from command line.
Diffstat (limited to 'src/gui/menus')
-rw-r--r--src/gui/menus/project.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/menus/project.c b/src/gui/menus/project.c
index d36a322..8c60f72 100644
--- a/src/gui/menus/project.c
+++ b/src/gui/menus/project.c
@@ -283,7 +283,11 @@ static void mcb_project_add_binary_file(GtkMenuItem *menuitem, GMenuBar *bar)
content = g_file_content_new(filename);
- qck_study_new_content(content, PCS_ROOT);
+ if (content != NULL)
+ {
+ qck_study_new_content(content, PCS_ROOT);
+ g_object_unref(G_OBJECT(content));
+ }
g_free(filename);