[gtk: 1/2] print-editor: Fix crash
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] print-editor: Fix crash
- Date: Wed, 13 May 2020 11:42:39 +0000 (UTC)
commit fcbc972c2a491494fb42768ff8dbe65a32539b01
Author: Alexander Larsson <alexl redhat com>
Date: Wed May 13 10:18:17 2020 +0200
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]