diff options
Diffstat (limited to 'sub/spudec.c')
-rw-r--r-- | sub/spudec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sub/spudec.c b/sub/spudec.c index 47e1676e2e..431a161e9d 100644 --- a/sub/spudec.c +++ b/sub/spudec.c @@ -228,7 +228,9 @@ static int spudec_alloc_image(spudec_handle_t *this, int stride, int height) if (this->image_size < this->stride * this->height) { if (this->image != NULL) { free(this->image); + this->image = NULL; free(this->pal_image); + this->pal_image = NULL; this->image_size = 0; this->pal_width = this->pal_height = 0; } |