mpegpsmux; Fix stream leak
authorEdward Hervey <edward@collabora.com>
Tue, 13 May 2014 09:30:35 +0000 (11:30 +0200)
committerEdward Hervey <edward@collabora.com>
Tue, 13 May 2014 09:30:35 +0000 (11:30 +0200)
CID #1212164

gst/mpegpsmux/psmuxstream.c

index 9c29ec4..43f7070 100644 (file)
@@ -147,6 +147,7 @@ psmux_stream_new (PsMux * mux, PsMuxStreamType stream_type)
   if (stream->stream_id == 0) {
     g_critical ("Number of elementary streams of type %04x exceeds maximum",
         stream->stream_type);
+    g_slice_free (PsMuxStream, stream);
     return NULL;
   }