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); }