diff libvo/vo_vesa.c @ 8786:605c85c27e68

Not checking it caused SIGSEV when uninitning after vesa init failed.
author filon
date Sat, 04 Jan 2003 22:41:52 +0000
parents edfe94b9d578
children 668b30187d48
line wrap: on
line diff
--- a/libvo/vo_vesa.c	Sat Jan 04 21:26:35 2003 +0000
+++ b/libvo/vo_vesa.c	Sat Jan 04 22:41:52 2003 +0000
@@ -991,6 +991,8 @@
 static void
 uninit(void)
 {
+    // not inited
+    if (!init_state) return;
     vesa_term();
     if(verbose > 2)
         printf("vo_vesa: uninit was called\n");