[gedit] file chooser: use g_object_unref to free a native dialog
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] file chooser: use g_object_unref to free a native dialog
- Date: Wed, 26 Sep 2018 20:18:13 +0000 (UTC)
commit 967b27be72d6ede8db272f885b91124bd6d45194
Author: Sebastien Lafargue <slafargue gnome org>
Date: Wed Sep 26 22:07:28 2018 +0200
file chooser: use g_object_unref to free a native dialog
Not freeing the dialog had the side effect of not
removing it's ref on the window and re-using it next time
with a bad location.
gedit/gedit-file-chooser-dialog-gtk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gedit/gedit-file-chooser-dialog-gtk.c b/gedit/gedit-file-chooser-dialog-gtk.c
index 96d3e0e13..c34e7dafa 100644
--- a/gedit/gedit-file-chooser-dialog-gtk.c
+++ b/gedit/gedit-file-chooser-dialog-gtk.c
@@ -214,7 +214,7 @@ chooser_hide (GeditFileChooserDialog *dialog)
static void
chooser_destroy (GeditFileChooserDialog *dialog)
{
- //gtk_widget_destroy (GTK_WIDGET (dialog));
+ g_object_unref (dialog);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]