summaryrefslogtreecommitdiff
path: root/channels/console_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/console_video.c')
-rw-r--r--channels/console_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/console_video.c b/channels/console_video.c
index da45d76ae..e13078000 100644
--- a/channels/console_video.c
+++ b/channels/console_video.c
@@ -1190,7 +1190,7 @@ static void *video_thread(void *arg)
video_out_uninit(&env->out);
if (env->gui)
- cleanup_sdl(env);
+ env->gui = cleanup_sdl(env->gui);
ast_mutex_destroy(&(env->in.dec_in_lock));
env->shutdown = 0;
return NULL;