[gnome-shell] ShellEmbeddedWindow: don't update the size of a destroyed actor.



commit abcca3d3bc3e3773f140b121d20a15a556cc9dad
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Mon Jan 9 16:36:21 2012 +0100

    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

 src/shell-embedded-window.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/shell-embedded-window.c b/src/shell-embedded-window.c
index a878448..abc29ac 100644
--- a/src/shell-embedded-window.c
+++ b/src/shell-embedded-window.c
@@ -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);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]