ShellEmbeddedWindow: don't update the size of a destroyed actor.
shell_embedded_window_hide() can be called during widget destruction, after the associated ClutterActor has been already cleared out. Fix a crash in that case. https://bugzilla.gnome.org/show_bug.cgi?id=633028
This commit is contained in:
parent
f4d13b9801
commit
abcca3d3bc
@ -84,7 +84,8 @@ shell_embedded_window_hide (GtkWidget *widget)
|
||||
{
|
||||
ShellEmbeddedWindow *window = SHELL_EMBEDDED_WINDOW (widget);
|
||||
|
||||
clutter_actor_queue_relayout (CLUTTER_ACTOR (window->priv->actor));
|
||||
if (window->priv->actor)
|
||||
clutter_actor_queue_relayout (CLUTTER_ACTOR (window->priv->actor));
|
||||
|
||||
GTK_WIDGET_CLASS (shell_embedded_window_parent_class)->hide (widget);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user