Fixed #4249 by add retain count for extension string

This commit is contained in:
Xinyu Hou 2014-12-02 12:36:01 +00:00
parent 774b217e8f
commit db9f7974ed
1 changed files with 3 additions and 1 deletions

View File

@ -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);
} }