vo_gpu_next: fix crash on uninit after startup failure

This commit is contained in:
rcombs 2022-10-14 08:33:47 -05:00 committed by Niklas Haas
parent 59fc8eecbc
commit dfb5b0c55f
1 changed files with 1 additions and 1 deletions

View File

@ -1352,7 +1352,7 @@ static void uninit(struct vo *vo)
pthread_mutex_destroy(&p->dr_lock);
char *cache_file = get_cache_file(p);
if (cache_file) {
if (cache_file && p->rr) {
FILE *cache = fopen(cache_file, "wb");
if (cache) {
size_t size = pl_renderer_save(p->rr, NULL);