From fcbc972c2a491494fb42768ff8dbe65a32539b01 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 13 May 2020 10:18:17 +0200 Subject: [PATCH] print-editor: Fix crash We're trying to g_free a GFile, which is not good... --- demos/print-editor/print-editor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/demos/print-editor/print-editor.c b/demos/print-editor/print-editor.c index 37ea8cf7ca..c2819bf8c9 100644 --- a/demos/print-editor/print-editor.c +++ b/demos/print-editor/print-editor.c @@ -583,8 +583,7 @@ activate_new (GSimpleAction *action, GVariant *parameter, gpointer user_data) { - g_free (filename); - filename = NULL; + g_clear_object (&filename); set_text ("", 0); }