[quake3-commits] r2194 - trunk/code/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Nov 2 23:52:46 EDT 2011


Author: ztm
Date: 2011-11-02 23:52:46 -0400 (Wed, 02 Nov 2011)
New Revision: 2194

Modified:
   trunk/code/client/cl_ui.c
Log:
Client no longer tries to run UI_SHUTDOWN on ui vms with an unsupported API version.

Modified: trunk/code/client/cl_ui.c
===================================================================
--- trunk/code/client/cl_ui.c	2011-10-28 21:54:06 UTC (rev 2193)
+++ trunk/code/client/cl_ui.c	2011-11-03 03:52:46 UTC (rev 2194)
@@ -1119,6 +1119,10 @@
 		VM_Call( uivm, UI_INIT, (clc.state >= CA_AUTHORIZING && clc.state < CA_ACTIVE));
 	}
 	else if (v != UI_API_VERSION) {
+		// Free uivm now, so UI_SHUTDOWN doesn't get called later.
+		VM_Free( uivm );
+		uivm = NULL;
+
 		Com_Error( ERR_DROP, "User Interface is version %d, expected %d", v, UI_API_VERSION );
 		cls.uiStarted = qfalse;
 	}



More information about the quake3-commits mailing list