Fixed #4249 by add retain count for extension string
This commit is contained in:
parent
774b217e8f
commit
db9f7974ed
|
@ -98,7 +98,9 @@ clearDropTarget
|
||||||
- (void)
|
- (void)
|
||||||
setFileExt:(NSString*) ext
|
setFileExt:(NSString*) ext
|
||||||
{
|
{
|
||||||
m_dragFileExt = [NSString stringWithString:ext];
|
[ext retain];
|
||||||
|
[m_dragFileExt release];
|
||||||
|
m_dragFileExt = ext;
|
||||||
NSLog(@"drag file ext: %@", m_dragFileExt);
|
NSLog(@"drag file ext: %@", m_dragFileExt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue