summaryrefslogtreecommitdiffstats
path: root/defaultopts.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-04 09:57:58 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-23 13:41:05 +0300
commitf894294bae1ff9b2c1802a5ae7e73cfdbc26e645 (patch)
tree946aafc44d5c9c82a6838c8bd282f40d04808243 /defaultopts.c
parentb91826280c468b1b5b4baf6e0225dfdb878e214a (diff)
downloadmpv-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 'defaultopts.c')
0 files changed, 0 insertions, 0 deletions