summaryrefslogtreecommitdiff
path: root/splash/SplashBitmap.cc
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2009-04-11 00:31:57 +0200
committerAlbert Astals Cid <aacid@kde.org>2009-04-11 00:31:57 +0200
commit9cf2325fb22f812b31858e519411f57747d39bd8 (patch)
treea3e03ba664475b379edec748d80ec75719e54678 /splash/SplashBitmap.cc
parentc399b2d512aa073b0d7cd8eb5413a4b43f0d6aef (diff)
More gmalloc → gmallocn
Diffstat (limited to 'splash/SplashBitmap.cc')
-rw-r--r--splash/SplashBitmap.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/splash/SplashBitmap.cc b/splash/SplashBitmap.cc
index 97d622cf..6cf2aea9 100644
--- a/splash/SplashBitmap.cc
+++ b/splash/SplashBitmap.cc
@@ -11,7 +11,7 @@
// All changes made under the Poppler project to this file are licensed
// under GPL version 2 or later
//
-// Copyright (C) 2006 Albert Astals Cid <aacid@kde.org>
+// Copyright (C) 2006, 2009 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2007 Ilmari Heikkinen <ilmari.heikkinen@gmail.com>
//
// To see a description of the changes please see the Changelog file that
@@ -62,13 +62,13 @@ 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;
}
if (alphaA) {
- alpha = (Guchar *)gmalloc(width * height);
+ alpha = (Guchar *)gmallocn(width, height);
} else {
alpha = NULL;
}