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:
Thiago Santos 2010-05-28 10:43:36 -03:00
parent ad9ffeed03
commit e0c49a7590

View file

@ -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;
}
}