mirror of
https://github.com/mpv-player/mpv
synced 2025-02-03 05:31:34 +00:00
Add a check for c->head being NULL in pullup_free_context().
This fixes crashes when an invalid filter chain is built Patch by Alexander Strange % astrange A ithinksw P com % Original thread: date: Sep 7, 2007 8:47 PM subject: [MPlayer-dev-eng] [PATCH] crash in pullup with invalid filters git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24370 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a85effae4f
commit
a7aae21ad0
@ -795,6 +795,7 @@ void pullup_free_context(struct pullup_context *c)
|
||||
free(c->buffers);
|
||||
f = c->head;
|
||||
do {
|
||||
if (!f) break;
|
||||
free(f->diffs);
|
||||
free(f->comb);
|
||||
f = f->next;
|
||||
|
Loading…
Reference in New Issue
Block a user