[Kst] branches/work/kst/1.1/kst/kst
George Staikos
staikos at kde.org
Mon Sep 12 19:27:30 CEST 2005
SVN commit 460012 by staikos:
backport memory leak fix
M +1 -4 kstiface_impl.cpp
--- branches/work/kst/1.1/kst/kst/kstiface_impl.cpp #460011:460012
@@ -1585,13 +1585,10 @@
if (lowerZ > upperZ) {
return QString::null;
}
- KPalette* pal = new KPalette(paletteName);
- if (!pal) {
- return QString::null;
- }
if (numContours < 1) {
return QString::null;
}
+ KPalette* pal = new KPalette(paletteName);
matrix->readLock();
image = new KstImage(imgtag, matrix, lowerZ, upperZ, false, pal,
numContours, contourColor.isValid() ? contourColor : QColor("darkBlue"), 0);
More information about the Kst
mailing list