[nautilus/wip/csoriano/search-popover: 14/43] 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/43] query-editor: clear signals and widgets
- Date: Tue, 2 Feb 2016 21:14:06 +0000 (UTC)
commit ab5b5704ab4ce2e30871cf69b835cb07eec4efa9
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]