mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
jpegenc: Keep variables in sane state after _reset
When reseting, keep 'row' variables at a sane state after freeing to avoid it being freed again on _resync realloc when the element is reused. Fixes #619943
This commit is contained in:
parent
ad9ffeed03
commit
e0c49a7590
1 changed files with 1 additions and 0 deletions
|
@ -308,6 +308,7 @@ gst_jpegenc_reset (GstJpegEnc * enc)
|
|||
for (i = 0; i < 3; i++) {
|
||||
for (j = 0; j < 4 * DCTSIZE; j++) {
|
||||
g_free (enc->row[i][j]);
|
||||
enc->row[i][j] = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue