mpegpsmux; Fix stream leak

CID #1212164
This commit is contained in:
Edward Hervey 2014-05-13 11:30:35 +02:00
parent 1d01afc166
commit 2495f700bd

View 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;
}