[cheese/gnome-3-0] libcheese: don't leak the source element



commit e8f9382729502b7544102a98b5745d82d3717017
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
    
    Conflicts:
    
    	libcheese/cheese-camera-device.c

 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 487b48d..7503c6d 100644
--- a/libcheese/cheese-camera-device.c
+++ b/libcheese/cheese-camera-device.c
@@ -331,6 +331,7 @@ cheese_camera_device_get_caps (CheeseCameraDevice *device)
 
       gst_object_unref (pad);
       gst_caps_unref (caps);
+      gst_object_unref (src);
     }
     else
     {



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