[nautilus/wip/csoriano/search-popover: 14/40] query-editor: clear signals and widgets
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/csoriano/search-popover: 14/40] query-editor: clear signals and widgets
- Date: Tue, 2 Feb 2016 17:42:09 +0000 (UTC)
commit 581f60406d901de7a4de66b9a84c7050990ce48e
Author: Carlos Soriano <csoriano gnome org>
Date: Tue Feb 2 18:27:14 2016 +0100
query-editor: clear signals and widgets
Don't leak them
src/nautilus-query-editor.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c
index 289741b..59034ee 100644
--- a/src/nautilus-query-editor.c
+++ b/src/nautilus-query-editor.c
@@ -111,6 +111,9 @@ nautilus_query_editor_dispose (GObject *object)
g_clear_object (&priv->location);
g_clear_object (&priv->query);
+ g_signal_handlers_disconnect_by_data (priv->popover, object);
+ g_clear_object (&priv->popover);
+
G_OBJECT_CLASS (nautilus_query_editor_parent_class)->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]