[cheese/gnome-2-32] libcheese: don't leak the source element
- From: Luciana Fujii Pontello <lufujii src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/gnome-2-32] libcheese: don't leak the source element
- Date: Wed, 25 May 2011 02:57:57 +0000 (UTC)
commit 601239b01d85c2c7c9478f9980e353437654d8fa
Author: Alessandro Decina <alessandro decina collabora co uk>
Date: Thu May 19 17:42:52 2011 +0200
libcheese: don't leak the source element
Don't leak the source element when probing for the caps
libcheese/cheese-camera-device.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libcheese/cheese-camera-device.c b/libcheese/cheese-camera-device.c
index 87cc873..6b02019 100644
--- a/libcheese/cheese-camera-device.c
+++ b/libcheese/cheese-camera-device.c
@@ -330,6 +330,7 @@ cheese_camera_device_get_caps (CheeseCameraDevice *device)
gst_object_unref (pad);
gst_caps_unref (caps);
+ gst_object_unref (src);
} else {
if (msg) {
gchar *dbg_info = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]