diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-04 09:57:58 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-23 13:41:05 +0300 |
commit | f894294bae1ff9b2c1802a5ae7e73cfdbc26e645 (patch) | |
tree | 946aafc44d5c9c82a6838c8bd282f40d04808243 /libmpdemux/genres.h | |
parent | b91826280c468b1b5b4baf6e0225dfdb878e214a (diff) | |
download | mpv-f894294bae1ff9b2c1802a5ae7e73cfdbc26e645.tar.bz2 mpv-f894294bae1ff9b2c1802a5ae7e73cfdbc26e645.tar.xz |
vo_xv: Free resources in error cases
If preinit() failed after allocating some resources it didn't free
them. Also if preinit() completed but all (if any) calls to config()
failed then uninit() it not free resources. Add checks to uninit() to
make it safe with only a subset of resources allocated, then make it
execute independently of vo_config_count and also make preinit() call
it in error cases.
Diffstat (limited to 'libmpdemux/genres.h')
0 files changed, 0 insertions, 0 deletions