Diffstat (limited to 'noncore/unsupported/oipkg/packagelist.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/packagelist.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/unsupported/oipkg/packagelist.cpp b/noncore/unsupported/oipkg/packagelist.cpp index 2fc4c41..fdd1163 100644 --- a/noncore/unsupported/oipkg/packagelist.cpp +++ b/noncore/unsupported/oipkg/packagelist.cpp @@ -10,2 +10,3 @@ static QDict<Package> *packageListAll; +static int packageListAllRefCount = 0; @@ -16,2 +17,3 @@ PackageList::PackageList() if (!packageListAll) packageListAll = new QDict<Package>(); + packageListAllRefCount++; sections << "All"; @@ -33,2 +35,3 @@ PackageList::~PackageList() { + if (--packageListAllRefCount < 1 ) delete packageListAll; } @@ -53,3 +56,3 @@ void PackageList::insertPackage( Package* pack ) { - packver = new QDict<Package>; + packver = new QDict<Package>(); packver->insert( pack->name(), p ); @@ -184,2 +187,3 @@ void PackageList::readFileEntries( QString filename, QString dest ) } + delete statusStream; return; |