diff options
author | Thiago Santos <thiago.sousa.santos@collabora.co.uk> | 2010-05-28 10:43:36 -0300 |
---|---|---|
committer | Thiago Santos <thiago.sousa.santos@collabora.co.uk> | 2010-05-28 10:43:36 -0300 |
commit | e0c49a7590b1d554a5e6059edac125bf36b8f4d8 (patch) | |
tree | 1e8599b66c47c519de33d2c69bb3b9ffb4a32a37 /ext/jpeg/gstjpegenc.c | |
parent | ad9ffeed031582c33240a0ac730545dee8e4d844 (diff) |
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
Diffstat (limited to 'ext/jpeg/gstjpegenc.c')
-rw-r--r-- | ext/jpeg/gstjpegenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/jpeg/gstjpegenc.c b/ext/jpeg/gstjpegenc.c index da2c4dafc..230b11ce2 100644 --- a/ext/jpeg/gstjpegenc.c +++ b/ext/jpeg/gstjpegenc.c @@ -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; } } |