summaryrefslogtreecommitdiff
path: root/splash/SplashBitmap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'splash/SplashBitmap.cc')
-rw-r--r--splash/SplashBitmap.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/splash/SplashBitmap.cc b/splash/SplashBitmap.cc
index 97d622cf..7004c19d 100644
--- a/splash/SplashBitmap.cc
+++ b/splash/SplashBitmap.cc
@@ -62,7 +62,7 @@ SplashBitmap::SplashBitmap(int widthA, int heightA, int rowPad,
}
rowSize += rowPad - 1;
rowSize -= rowSize % rowPad;
- data = (SplashColorPtr)gmalloc(rowSize * height);
+ data = (SplashColorPtr)gmallocn(rowSize, height);
if (!topDown) {
data += (height - 1) * rowSize;
rowSize = -rowSize;