[cheese] libcheese: Fix warning on exit
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] libcheese: Fix warning on exit
- Date: Fri, 4 Sep 2015 08:58:03 +0000 (UTC)
commit 12bce8bfda1226f3a813cdfe4317067fa4a1ead0
Author: Bastien Nocera <hadess hadess net>
Date: Fri Sep 4 10:35:39 2015 +0200
libcheese: Fix warning on exit
#0 0x00007ffff0ea4623 in _g_log_abort (breakpoint=1) at gmessages.c:324
#1 g_logv (log_domain=0x7ffff11c9224 "GLib-GObject", log_level=G_LOG_LEVEL_CRITICAL, format=<optimized
out>, args=args entry=0x7fffffffd448) at gmessages.c:1081
#2 0x00007ffff0ea4782 in g_log (log_domain=<optimized out>, log_level=<optimized out>,
format=<optimized out>) at gmessages.c:1119
#3 0x00007ffff7bd2380 in cheese_camera_finalize (object=0x14022d0) at libcheese/cheese-camera.c:1274
https://bugzilla.gnome.org/show_bug.cgi?id=754556
libcheese/cheese-camera.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libcheese/cheese-camera.c b/libcheese/cheese-camera.c
index 135844b..95edc90 100644
--- a/libcheese/cheese-camera.c
+++ b/libcheese/cheese-camera.c
@@ -1271,7 +1271,7 @@ cheese_camera_finalize (GObject *object)
if (priv->photo_filename)
g_free (priv->photo_filename);
g_free (priv->current_effect_desc);
- g_object_unref (priv->device);
+ g_clear_object (&priv->device);
g_boxed_free (CHEESE_TYPE_VIDEO_FORMAT, priv->current_format);
/* Free CheeseCameraDevice array */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]