diff options
author | wm4 <wm4@nowhere> | 2014-01-07 00:59:25 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-07 01:07:50 +0100 |
commit | 326d887a41dd2eefdc8496e218ada1a0d0379a70 (patch) | |
tree | d15e529dfa68e0bd446246c73bbf438df340b609 /video/out/gl_video.c | |
parent | cf6f1106eac31499f645720b5e1598a995de1f71 (diff) | |
download | mpv-326d887a41dd2eefdc8496e218ada1a0d0379a70.tar.bz2 mpv-326d887a41dd2eefdc8496e218ada1a0d0379a70.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 'video/out/gl_video.c')
0 files changed, 0 insertions, 0 deletions