Commit ca72147c authored by Christian Hergert's avatar Christian Hergert

prefs: release extensions on destroy event

These were getting leaked apparently.
parent e068cdad
......@@ -71,6 +71,16 @@ ide_preferences_perspective_extension_removed (PeasExtensionSet *set,
dzl_preferences_view_reapply_filter (DZL_PREFERENCES_VIEW (self));
static void
ide_preferences_perspective_destroy (GtkWidget *widget)
IdePreferencesPerspective *self = (IdePreferencesPerspective *)widget;
g_clear_object (&self->extensions);
GTK_WIDGET_CLASS (ide_preferences_perspective_parent_class)->destroy (widget);
static void
ide_preferences_perspective_constructed (GObject *object)
......@@ -103,8 +113,11 @@ static void
ide_preferences_perspective_class_init (IdePreferencesPerspectiveClass *klass)
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
object_class->constructed = ide_preferences_perspective_constructed;
widget_class->destroy = ide_preferences_perspective_destroy;
static void
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment