]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_screen.c
every malloc/calloc/free converted to qmalloc/qfree with tracking (memstats command...
[xonotic/darkplaces.git] / gl_screen.c
index 045afa6e910341a1ab8ab0d04026b811473dd2e6..ab123c0c80ef2dce67b8efd0c846c6eaa5022c8f 100644 (file)
@@ -615,11 +615,11 @@ void SCR_ScreenShot_f (void)
                return;
        }
 
-       buffer = malloc(glwidth*glheight*3);
+       buffer = qmalloc(glwidth*glheight*3);
        glReadPixels (glx, gly, glwidth, glheight, GL_RGB, GL_UNSIGNED_BYTE, buffer); 
        Image_WriteTGARGB_preflipped(filename, glwidth, glheight, buffer);
 
-       free (buffer);
+       qfree(buffer);
        Con_Printf ("Wrote %s\n", filename);
 }