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
@ -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…
x
Reference in New Issue
Block a user