summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2018-05-29 02:28:26 +0300
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2018-05-29 02:28:26 +0300
commit44894262f49b9f8b2809321ebcf1cd9426303fd6 (patch)
treeada269c886a27f71b5faa264df32753c9d3fea84
parentb03bcc85aad825e15521408fbb08777d3ff7fd3f (diff)
downloadgnome-shell-44894262f49b9f8b2809321ebcf1cd9426303fd6.tar.gz
st-label: Unset clutter text instance on disposal
The instance is owned by the actor (being its child), and thus when the disposal happens for the parent the text is disposed too, thus it's just safer to nullify its reference so that we won't try to access to invalid objects later, and this might be the case since the JS objects could be kept around until they aren't finalized. https://bugzilla.gnome.org/show_bug.cgi?id=788931
-rw-r--r--src/st/st-label.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/st/st-label.c b/src/st/st-label.c
index a7893b074..515e34323 100644
--- a/src/st/st-label.c
+++ b/src/st/st-label.c
@@ -180,6 +180,7 @@ st_label_dispose (GObject *object)
{
StLabelPrivate *priv = ST_LABEL (object)->priv;
+ priv->label = NULL;
g_clear_pointer (&priv->text_shadow_pipeline, cogl_object_unref);
G_OBJECT_CLASS (st_label_parent_class)->dispose (object);