From 1cb1864cc04e1036ea4066ee862f6ac88ea708d5 Mon Sep 17 00:00:00 2001 From: Exeldro Date: Tue, 14 May 2024 12:02:38 +0200 Subject: [PATCH] libobs: Fix crash when mix is NULL --- libobs/obs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libobs/obs.c b/libobs/obs.c index ea930cc6757b65..9b739c1f307dfe 100644 --- a/libobs/obs.c +++ b/libobs/obs.c @@ -878,13 +878,13 @@ static void obs_free_video(void) obs_free_video_mix(video); obs->video.mixes.array[i] = NULL; } + da_free(obs->video.mixes); if (num_views > 0) blog(LOG_WARNING, "Number of remaining views: %ld", num_views); pthread_mutex_unlock(&obs->video.mixes_mutex); pthread_mutex_destroy(&obs->video.mixes_mutex); pthread_mutex_init_value(&obs->video.mixes_mutex); - da_free(obs->video.mixes); for (size_t i = 0; i < obs->video.ready_encoder_groups.num; i++) { obs_weak_encoder_release(