[cheese] Add checks before trying to cancel the countdown



commit f749bb23a7512d36ed44f89fa755e6c152731862
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jan 14 17:01:39 2010 +0000

    Add checks before trying to cancel the countdown

 libcheese/cheese-avatar-chooser.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libcheese/cheese-avatar-chooser.c b/libcheese/cheese-avatar-chooser.c
index d162118..90dfcbe 100644
--- a/libcheese/cheese-avatar-chooser.c
+++ b/libcheese/cheese-avatar-chooser.c
@@ -281,7 +281,8 @@ cheese_avatar_chooser_response (GtkDialog *dialog, gint response_id)
 {
   CheeseAvatarChooserPrivate *priv = CHEESE_AVATAR_CHOOSER_GET_PRIVATE (dialog);
 
-  cheese_countdown_cancel (CHEESE_COUNTDOWN (priv->countdown));
+  if (priv && priv->countdown)
+    cheese_countdown_cancel (CHEESE_COUNTDOWN (priv->countdown));
 }
 
 static void



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