Skip to content

Commit 6471441

Browse files
SiegeLordExSiegeLord
authored andcommitted
Allow calling al_shutdown_video_addon multiple times.
1 parent f9a0da6 commit 6471441

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

addons/video/video.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,9 @@ bool al_init_video_addon(void)
277277
*/
278278
void al_shutdown_video_addon(void)
279279
{
280+
if (!video_inited)
281+
return;
282+
280283
VideoHandler *v = handlers;
281284
while (v) {
282285
VideoHandler *next = v->next;

0 commit comments

Comments
 (0)