summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-07 00:59:25 +0100
committerwm4 <wm4@nowhere>2014-01-15 20:49:19 +0100
commitc18c324c6fd42faf6aea8d8ac9d6959a8fd31832 (patch)
tree430dfc4374c14fbfafb721af7da93ae54b6f9e28 /compat
parent6b20c244132b4872c3408344ca5bd2c2a6ae5025 (diff)
downloadmpv-c18c324c6fd42faf6aea8d8ac9d6959a8fd31832.tar.bz2
mpv-c18c324c6fd42faf6aea8d8ac9d6959a8fd31832.tar.xz
wayland: fix some memory leaks on initialization failure
This commonly happens when initializing vo_opengl on a X11-only system. Unfortunately, most wl_*_destroy() functions appear not to accept NULL pointers, making partial deinitialization a pain: you have to add your own NULL checks everywhere to avoid crashes. xkb.context is uninitialized separately, because you can initialize it just fine, even if the rest of input initialization fails.
Diffstat (limited to 'compat')
0 files changed, 0 insertions, 0 deletions