changeset 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 269a9a30306c
children e280692c0878
files libvo/vo_vesa.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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");