[clutter-gst/clutter-gst-2.0] Fix memory leak in clutter_gst_auto_video_sink_accept_caps()



commit d72d5f7ab39676679463d423960e437468022839
Author: David King <amigadave amigadave com>
Date:   Thu Jan 2 16:06:23 2014 +0000

    Fix memory leak in clutter_gst_auto_video_sink_accept_caps()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=721344

 clutter-gst/clutter-gst-auto-video-sink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-auto-video-sink.c b/clutter-gst/clutter-gst-auto-video-sink.c
index 4977d5b..9157430 100644
--- a/clutter-gst/clutter-gst-auto-video-sink.c
+++ b/clutter-gst/clutter-gst-auto-video-sink.c
@@ -457,7 +457,7 @@ clutter_gst_auto_video_sink_accept_caps (ClutterGstAutoVideoSink * bin,
     if (!gst_caps_is_empty (result))
       ret = TRUE;
 
-    caps = result;
+    gst_caps_unref (result);
   }
 
   gst_caps_unref (allowed_caps);


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