mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
st/scroll-view: Remove scrollbars references on dispose
As we're destroying the scrollbars on destruction, we should remove any reference of it, not to cause multiple-calls to disposal to unreference them again. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/190
This commit is contained in:
parent
4dc44304df
commit
aa9031d8e7
1 changed files with 2 additions and 5 deletions
|
|
@ -250,11 +250,8 @@ st_scroll_view_dispose (GObject *object)
|
|||
priv->fade_effect = NULL;
|
||||
}
|
||||
|
||||
if (priv->vscroll)
|
||||
clutter_actor_destroy (priv->vscroll);
|
||||
|
||||
if (priv->hscroll)
|
||||
clutter_actor_destroy (priv->hscroll);
|
||||
g_clear_pointer (&priv->vscroll, clutter_actor_destroy);
|
||||
g_clear_pointer (&priv->hscroll, clutter_actor_destroy);
|
||||
|
||||
/* For most reliable freeing of memory, an object with signals
|
||||
* like StAdjustment should be explicitly disposed. Since we own
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue