--- a/src/screenshot.cpp Thu Jan 11 13:41:16 2007 +0000
+++ b/src/screenshot.cpp Mon Jan 15 20:14:06 2007 +0000
@@ -13,6 +13,7 @@
#include "screenshot.h"
#include "variables.h"
#include "date.h"
+#include "helpers.hpp"
char _screenshot_format_name[8];
uint _num_screenshot_formats;
@@ -118,7 +119,7 @@
maxlines = clamp(65536 / padw, 16, 128);
// now generate the bitmap bits
- buff = malloc(padw * maxlines); // by default generate 128 lines at a time.
+ MallocT(&buff, padw * maxlines); // by default generate 128 lines at a time.
if (buff == NULL) {
fclose(f);
return false;
@@ -225,7 +226,7 @@
maxlines = clamp(65536 / w, 16, 128);
// now generate the bitmap bits
- buff = malloc(w * maxlines); // by default generate 128 lines at a time.
+ MallocT(&buff, w * maxlines); // by default generate 128 lines at a time.
if (buff == NULL) {
png_destroy_write_struct(&png_ptr, &info_ptr);
fclose(f);
@@ -322,7 +323,7 @@
maxlines = clamp(65536 / w, 16, 128);
// now generate the bitmap bits
- buff = malloc(w * maxlines); // by default generate 128 lines at a time.
+ MallocT(&buff, w * maxlines); // by default generate 128 lines at a time.
if (buff == NULL) {
fclose(f);
return false;