diff options
author | wm4 <wm4@mplayer2.org> | 2011-10-24 02:28:56 +0200 |
---|---|---|
committer | wm4 <wm4@mplayer2.org> | 2012-01-18 02:52:34 +0100 |
commit | 98203198b6aacbeb99f1e10a9f41acaa9ead0126 (patch) | |
tree | 525178fab52936aba1ebc463f6812dc60d02bab9 /bstr.h | |
parent | 03ba61c3bf01367ff6c1c134ebe70f2e7ecbcae2 (diff) | |
download | mpv-98203198b6aacbeb99f1e10a9f41acaa9ead0126.tar.bz2 mpv-98203198b6aacbeb99f1e10a9f41acaa9ead0126.tar.xz |
input: fix crashes with libmenu
Note: now that libmenu has been removed, the related code in input.c has
been removed. If libmenu is ever added back, a queue_remove() function
that can remove any item in the input queue will be required.
libmenu triggered some special case that caused crashes by double frees.
In particular the queue_pop function is used, expecting to remove an element
that is not necessarily always the one that queue_pop removes. Fix by
adding a queue_remove functions. Rewrite the other queue functions, since
these are probably buggy as well. queue_pop didn't even attempt to
maintain the doubly linked list.
Diffstat (limited to 'bstr.h')
0 files changed, 0 insertions, 0 deletions