[cheese] Fix CheeseFlash when disposed multiple times
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [cheese] Fix CheeseFlash when disposed multiple times
- Date: Thu, 3 Dec 2009 16:24:12 +0000 (UTC)
commit 0068d8fdfaea7440a86c64a34ec68754d92dcbc4
Author: Bastien Nocera <hadess hadess net>
Date: Thu Dec 3 16:21:34 2009 +0000
Fix CheeseFlash when disposed multiple times
libcheese/cheese-flash.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libcheese/cheese-flash.c b/libcheese/cheese-flash.c
index 1466948..90c66c8 100644
--- a/libcheese/cheese-flash.c
+++ b/libcheese/cheese-flash.c
@@ -103,7 +103,10 @@ cheese_flash_dispose (GObject *object)
{
CheeseFlashPrivate *priv = CHEESE_FLASH_GET_PRIVATE (object);
- g_object_unref (priv->window);
+ if (priv->window != NULL) {
+ gtk_widget_destroy (GTK_WIDGET (priv->window));
+ priv->window = NULL;
+ }
if (G_OBJECT_CLASS (cheese_flash_parent_class)->dispose)
G_OBJECT_CLASS (cheese_flash_parent_class)->dispose (object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]