Fix a double-release when loading NIB files
Change-Id: I0c2c2a932b433a84e136da8e262739951a1d8c6e Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
This commit is contained in:
parent
76afa1556c
commit
3b80f1c4d5
@ -93,7 +93,6 @@ void qt_mac_loadMenuNib(QT_MANGLE_NAMESPACE(QCocoaMenuLoader) *qtMenuLoader)
|
||||
|
||||
// Load and instantiate nib file from temp
|
||||
NSURL *nibUrl = [NSURL fileURLWithPath : QCFString::toNSString(nibDir)];
|
||||
[nibUrl autorelease];
|
||||
NSNib *nib = [[NSNib alloc] initWithContentsOfURL : nibUrl];
|
||||
[nib autorelease];
|
||||
if(!nib) {
|
||||
|
Loading…
Reference in New Issue
Block a user