mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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
1 changed files with 4 additions and 0 deletions
|
@ -138,6 +138,10 @@ gst_pnmdec_stop (GstVideoDecoder * decoder)
|
|||
pnmdec->input_state = NULL;
|
||||
}
|
||||
|
||||
if (pnmdec->buf) {
|
||||
gst_buffer_unref (pnmdec->buf);
|
||||
pnmdec->buf = NULL;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue