diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-04-02 23:23:11 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-04-02 23:23:11 +0200 |
commit | 97b6bf8279d5e1ac9ff60908c43f7de0d395dc81 (patch) | |
tree | e8a0d4eebbc02d175c8b6c5f64702617cb81302b /src | |
parent | d92d4d2767585e1956f2ce616ed795f2b1af3cc3 (diff) |
Don't g_object_ref(NULL)
Diffstat (limited to 'src')
-rw-r--r-- | src/narrative_window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/narrative_window.c b/src/narrative_window.c index 2df2c1e..3de5d9e 100644 --- a/src/narrative_window.c +++ b/src/narrative_window.c @@ -727,7 +727,7 @@ NarrativeWindow *narrative_window_new(Narrative *n, GFile *file, GApplication *p nw->n = n; nw->n_slidewindows = 0; nw->file = file; - g_object_ref(file); + if ( file != NULL ) g_object_ref(file); nw->window = gtk_application_window_new(GTK_APPLICATION(app)); update_titlebar(nw); |