pnmdec: Fix buffer memory leak
In case of corrupted file, s->buf allocated is not being freed https://bugzilla.gnome.org/show_bug.cgi?id=759522
This commit is contained in:
parent
6cb6903f82
commit
319d9efb2d
@ -138,6 +138,10 @@ gst_pnmdec_stop (GstVideoDecoder * decoder)
|
|||||||
pnmdec->input_state = NULL;
|
pnmdec->input_state = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pnmdec->buf) {
|
||||||
|
gst_buffer_unref (pnmdec->buf);
|
||||||
|
pnmdec->buf = NULL;
|
||||||
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user