[gtk+] filechooserbutton: Don't leak priv->model
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] filechooserbutton: Don't leak priv->model
- Date: Fri, 6 Oct 2017 15:38:35 +0000 (UTC)
commit d292ebc7bd6c96fffdaf6d3579b6048c7d9f5479
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 48d13cb..e868e04 100644
--- a/gtk/gtkfilechooserbutton.c
+++ b/gtk/gtkfilechooserbutton.c
@@ -1059,6 +1059,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);
+
gtk_widget_unparent (priv->button);
gtk_widget_unparent (priv->combo_box);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]