[cheese] Avoid run-time warning on exit



commit 67afd8ed0485164a03abd5ed0fe1bea4c51512f6
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Dec 2 17:10:09 2009 +0000

    Avoid run-time warning on exit

 libcheese/cheese-camera-device.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libcheese/cheese-camera-device.c b/libcheese/cheese-camera-device.c
index 0fa308f..4889e9b 100644
--- a/libcheese/cheese-camera-device.c
+++ b/libcheese/cheese-camera-device.c
@@ -39,6 +39,7 @@ cheese_camera_device_free (CheeseCameraDevice *device)
   g_free (device->gstreamer_src);
   g_free (device->product_name);
   g_array_free (device->video_formats, TRUE);
-  g_hash_table_destroy (device->supported_resolutions);
+  if (device->supported_resolutions != NULL)
+    g_hash_table_destroy (device->supported_resolutions);
 }
 



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