[gtk+/gtk-3-22] filechooserbutton: Don't leak priv->model



commit b94bfb167814a83e251e4e66c5774d4ac752b624
Author: Timm Bäder <mail baedert org>
Date:   Fri Oct 6 17:14:31 2017 +0200

    filechooserbutton: Don't leak priv->model

 gtk/gtkfilechooserbutton.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c
index 981b4d4..957cf23 100644
--- a/gtk/gtkfilechooserbutton.c
+++ b/gtk/gtkfilechooserbutton.c
@@ -994,6 +994,8 @@ gtk_file_chooser_button_finalize (GObject *object)
   if (priv->current_folder_while_inactive)
     g_object_unref (priv->current_folder_while_inactive);
 
+  g_object_unref (priv->model);
+
   G_OBJECT_CLASS (gtk_file_chooser_button_parent_class)->finalize (object);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]