diff options
author | Lorn Potter <lorn.potter@nokia.com> | 2010-04-21 04:54:57 (GMT) |
---|---|---|
committer | Lorn Potter <lorn.potter@nokia.com> | 2010-04-21 04:54:57 (GMT) |
commit | cde95eb6e0856d22e1528b2c731b876be0c71d8e (patch) | |
tree | fb91f3d1af7328731dc8d27c923460c82d871ab8 /src/plugins | |
parent | 96805a53d08a2f86b19aa77255a1e6467513def2 (diff) | |
download | Qt-cde95eb6e0856d22e1528b2c731b876be0c71d8e.zip Qt-cde95eb6e0856d22e1528b2c731b876be0c71d8e.tar.gz Qt-cde95eb6e0856d22e1528b2c731b876be0c71d8e.tar.bz2 |
fix memory bug
fixes using MallocScribble crash
Task-number: QTBUG-10068
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/bearer/corewlan/qcorewlanengine.mm | 4 |
1 files changed, 1 insertions, 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]; } } |