From cde95eb6e0856d22e1528b2c731b876be0c71d8e Mon Sep 17 00:00:00 2001 From: Lorn Potter Date: Wed, 21 Apr 2010 14:54:57 +1000 Subject: fix memory bug fixes using MallocScribble crash Task-number: QTBUG-10068 --- src/plugins/bearer/corewlan/qcorewlanengine.mm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/bearer/corewlan/qcorewlanengine.mm b/src/plugins/bearer/corewlan/qcorewlanengine.mm index 02079d6..3206833 100644 --- a/src/plugins/bearer/corewlan/qcorewlanengine.mm +++ b/src/plugins/bearer/corewlan/qcorewlanengine.mm @@ -316,7 +316,7 @@ void QScanThread::getUserConfigurations() // 802.1X user profiles QString userProfilePath = QDir::homePath() + "/Library/Preferences/com.apple.eap.profiles.plist"; - NSDictionary* eapDict = [[NSMutableDictionary alloc] initWithContentsOfFile:qt_mac_QStringToNSString(userProfilePath)]; + NSDictionary* eapDict = [[[NSDictionary alloc] initWithContentsOfFile:qt_mac_QStringToNSString(userProfilePath)] autorelease]; NSString *profileStr= @"Profiles"; NSString *nameStr = @"UserDefinedName"; NSString *networkSsidStr = @"Wireless Network"; @@ -347,10 +347,8 @@ void QScanThread::getUserConfigurations() } } } - [itemDict release]; } } - [eapDict release]; } } -- cgit v0.12