Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Günther Wagner
gnome-builder
Commits
ca72147c
Commit
ca72147c
authored
Sep 24, 2017
by
Christian Hergert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prefs: release extensions on destroy event
These were getting leaked apparently.
parent
e068cdad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
src/libide/preferences/ide-preferences-perspective.c
src/libide/preferences/ide-preferences-perspective.c
+13
-0
No files found.
src/libide/preferences/ide-preferences-perspective.c
View file @
ca72147c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment