avidemux: fix memory leak
authorGilbok Lee <gilbok.lee@samsung.com>
Tue, 3 Jan 2017 07:27:28 +0000 (16:27 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Tue, 3 Jan 2017 07:27:28 +0000 (16:27 +0900)
Change-Id: I1772a81ee910a54682353f168bcf678a825fbc57

gst/avi/gstavidemux.c

index aaac6cb..3fd44c2 100644 (file)
@@ -179,6 +179,11 @@ gst_avi_demux_class_init (GstAviDemuxClass * klass)
       "Erik Walthinsen <omega@cse.ogi.edu>, "
       "Wim Taymans <wim.taymans@chello.be>, "
       "Thijs Vermeir <thijsvermeir@gmail.com>");
+
+  gst_caps_unref(audcaps);
+  gst_caps_unref(vidcaps);
+  gst_caps_unref(subcaps);
+  gst_caps_unref(subpiccaps);
 }
 
 static void