[gnome-builder] greeter: destroy cloner IdeObject
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] greeter: destroy cloner IdeObject
- Date: Fri, 19 Apr 2019 19:50:14 +0000 (UTC)
commit 3ed6b1a3d6360a78aa1d924fa332ce60283090a1
Author: Christian Hergert <chergert redhat com>
Date: Fri Apr 19 12:49:54 2019 -0700
greeter: destroy cloner IdeObject
This ensures we don't leak the cloner to the context when the surface is
destroyed. It doesn't leak when the context is cleaned up, but we don't
need it to live that long anyway.
src/libide/greeter/ide-clone-surface.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/libide/greeter/ide-clone-surface.c b/src/libide/greeter/ide-clone-surface.c
index 23a61a5b9..45bee94f7 100644
--- a/src/libide/greeter/ide-clone-surface.c
+++ b/src/libide/greeter/ide-clone-surface.c
@@ -147,6 +147,8 @@ ide_clone_surface_addin_removed_cb (PeasExtensionSet *set,
gtk_widget_hide (GTK_WIDGET (self->kind_label));
gtk_widget_hide (GTK_WIDGET (self->kind_radio));
}
+
+ ide_object_destroy (IDE_OBJECT (exten));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]