[clutter-gtk] gtk_clutter_actor_unrealize: early return if priv->widget is NULL
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gtk] gtk_clutter_actor_unrealize: early return if priv->widget is NULL
- Date: Thu, 23 Feb 2012 11:22:52 +0000 (UTC)
commit 092ee700235bbd626cfb62d7dacd15a5319782c7
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Feb 23 12:20:00 2012 +0100
gtk_clutter_actor_unrealize: early return if priv->widget is NULL
https://bugzilla.gnome.org/show_bug.cgi?id=670662
clutter-gtk/gtk-clutter-actor.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/clutter-gtk/gtk-clutter-actor.c b/clutter-gtk/gtk-clutter-actor.c
index af65a2b..0e282da 100644
--- a/clutter-gtk/gtk-clutter-actor.c
+++ b/clutter-gtk/gtk-clutter-actor.c
@@ -160,6 +160,9 @@ gtk_clutter_actor_unrealize (ClutterActor *actor)
GtkClutterActor *clutter = GTK_CLUTTER_ACTOR (actor);
GtkClutterActorPrivate *priv = clutter->priv;
+ if (priv->widget == NULL)
+ return;
+
gtk_widget_unrealize (priv->widget);
priv->surface = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]