From 1ab92f1d2b346de7da8ca5c3aaa6bc75b43981e7 Mon Sep 17 00:00:00 2001 From: erik Date: Fri, 19 Jan 2007 01:12:38 +0000 Subject: Every single file in this commit had a memory leak where a resource is allocated in the constructor but not de-allocated in the destructor. This commit fixes that. --- (limited to 'noncore/apps/opie-reader/StyleConsts.cpp') diff --git a/noncore/apps/opie-reader/StyleConsts.cpp b/noncore/apps/opie-reader/StyleConsts.cpp index 77c9d3b..c19fa3d 100644 --- a/noncore/apps/opie-reader/StyleConsts.cpp +++ b/noncore/apps/opie-reader/StyleConsts.cpp @@ -4,6 +4,13 @@ GraphicLink::~GraphicLink() { delete graphic; } +pmstore::pmstore(bool _canScale, QImage* p, bool isLnk, unsigned long tgt) : + count(1), + m_isScaleable(_canScale) +{ + graphic = new GraphicLink(p, isLnk, tgt); +} + pmstore::~pmstore() { //// qDebug("Deleting image"); -- cgit v0.9.0.2