theoraenc: Fix a string leak in _getcaps()
authorJan Schmidt <thaytan@noraisin.net>
Sat, 12 Sep 2009 01:23:07 +0000 (02:23 +0100)
committerJan Schmidt <thaytan@noraisin.net>
Sat, 12 Sep 2009 01:24:49 +0000 (02:24 +0100)
ext/theora/theoraenc.c

index dc1865ca207948d49a3dd0427aa7da1862beb3e8..8f19986ca540af594f05b648d35809260261999b 100644 (file)
@@ -441,6 +441,7 @@ theora_enc_sink_getcaps (GstPad * pad)
       supported_formats);
   caps = gst_caps_from_string (caps_string);
   g_free (caps_string);
+  g_free (supported_formats);
   GST_DEBUG ("Supported caps: %" GST_PTR_FORMAT, caps);
 
   return caps;