Use MALLOC for save_screen_shot

This commit is contained in:
Kp 2013-08-04 22:21:33 +00:00
parent 9c982bbbc5
commit 924cc78c43

View file

@ -1103,7 +1103,7 @@ void save_screen_shot(int automap_flag)
glReadBuffer(GL_FRONT);
#endif
buf = d_malloc(grd_curscreen->sc_w*grd_curscreen->sc_h*3);
MALLOC(buf, unsigned char, grd_curscreen->sc_w*grd_curscreen->sc_h*3);
write_bmp(savename,grd_curscreen->sc_w,grd_curscreen->sc_h,buf);
d_free(buf);