1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

fix a memory leak

This commit is contained in:
Mitchell Livingston 2007-12-06 01:07:56 +00:00
parent bf3a103a9c
commit ac369517ab
3 changed files with 11 additions and 2 deletions

View file

@ -9,7 +9,9 @@
<key>IBOldestOS</key>
<integer>5</integer>
<key>IBOpenObjects</key>
<array/>
<array>
<integer>1480</integer>
</array>
<key>IBSystem Version</key>
<string>9B18</string>
<key>targetFramework</key>

Binary file not shown.

View file

@ -382,18 +382,25 @@
- (BOOL) control: (NSControl *) control textShouldBeginEditing: (NSText *) fieldEditor
{
#warning release!
[fInitialString release];
fInitialString = [[control stringValue] retain];
return YES;
}
- (BOOL) control: (NSControl *) control didFailToFormatString: (NSString *) string errorDescription: (NSString *) error
{
NSBeep();
if (fInitialString)
{
[control setStringValue: fInitialString];
[fInitialString release];
fInitialString = nil;
}
return NO;
}
- (void) setBadge: (id) sender
{
[[NSNotificationCenter defaultCenter] postNotificationName: @"DockBadgeChange" object: self];