Use MALLOC for save_screen_shot
This commit is contained in:
parent
9c982bbbc5
commit
924cc78c43
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue