mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-12-25 22:25:46 +00:00
Fix overreleasing in Cocoa code
This commit is contained in:
parent
c857722213
commit
2465c87844
1 changed files with 3 additions and 3 deletions
|
@ -11,10 +11,10 @@
|
|||
|
||||
void cocoaMessageBox(const std::string &title, const std::string &msg)
|
||||
{
|
||||
@autoreleasepool {
|
||||
NSString *nstitle = [NSString stringWithUTF8String:title.c_str()];
|
||||
NSString *nsmsg = [NSString stringWithUTF8String:msg.c_str()];
|
||||
NSRunAlertPanel(nstitle, nsmsg, @"OK", nil, nil);
|
||||
[nsmsg release];
|
||||
[nstitle release];
|
||||
NSRunAlertPanel(nstitle, nsmsg, nil, nil, nil);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue