Commit e0c49a75 authored by Thiago Santos's avatar Thiago Santos
Browse files

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
parent ad9ffeed
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment