[gtk+/portal] Clean up choices in finalize
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/portal] Clean up choices in finalize
- Date: Thu, 7 Jul 2016 03:29:37 +0000 (UTC)
commit 9ed26abe3df6d9ca4cd20c49880007dcf7d48ed5
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jul 6 21:01:41 2016 -0400
Clean up choices in finalize
This omission was pointed out by Cosimo.
gtk/gtkfilechooserwidget.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 3d995c0..943a98e 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -682,6 +682,9 @@ gtk_file_chooser_widget_finalize (GObject *object)
GtkFileChooserWidget *impl = GTK_FILE_CHOOSER_WIDGET (object);
GtkFileChooserWidgetPrivate *priv = impl->priv;
+ if (priv->choices)
+ g_hash_table_unref (priv->choices);
+
if (priv->location_changed_id > 0)
g_source_remove (priv->location_changed_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]