git: 9front

Download patch

ref: 00ccb44cce26472a18cf569a689850098ff13679
parent: 441564a863b57d0b1ee9c6d3679a74fc4e8a79b1
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Sun Aug 11 20:40:09 EDT 2013

games/doom: remove useless allocation of screen[0] buffer

screens 0-3 are already initialized by V_Init().

--- a/sys/src/games/doom/i_video.c
+++ b/sys/src/games/doom/i_video.c
@@ -57,8 +57,6 @@
 		exits(nil);
 	}
 	mousepid = pid;
-
-	screens[0] = (unsigned char*) malloc(SCREENWIDTH * SCREENHEIGHT);
 }
 
 void I_ShutdownGraphics(void)
--