summaryrefslogtreecommitdiff
path: root/src/gui/menus
diff options
context:
space:
mode:
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);