Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > c6df48aa6f24f13ac83670ff4f6d6ea9 > files > 4

qt4-4.3.4-6mdv2008.1.src.rpm

qt-bugs@ issue :  none
Trolltech task ID : none
bugs.kde.org number :
applied: no
author: Dirk Mueller

fix various obvious memory leaks etc

--- src/gui/painting/qimagescale.cpp
+++ src/gui/painting/qimagescale.cpp
@@ -1020,6 +1020,7 @@
     buffer = QImage(dw, dh, src.format());
     if (buffer.isNull()) {
         qWarning("QImage: out of memory, returning null");
+        qimageFreeScaleInfo(scaleinfo);
         return QImage();
     }
 
--- src/svg/qsvghandler.cpp
+++ src/svg/qsvghandler.cpp
@@ -1136,15 +1136,9 @@
         if (!size.isEmpty()) {
             QSvgHandler::LengthType type;
             qreal len = parseLength(size, type, handler);
-            //len = convertToPixels(len, false, type);
             // ### org_module.svg shows that font size
             // seems to be always in px...
-            type  = QSvgHandler::PX;
-            if (type == QSvgHandler::PX ||
-                type == QSvgHandler::OTHER)
-                font.setPixelSize(int(len));
-            else
-                font.setPointSizeF(len);
+            font.setPixelSize(int(len));
         }
         if (!style.isEmpty()) {
             if (style == QLatin1String("normal")) {