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

View File

@ -98,7 +98,9 @@ clearDropTarget
- (void)
setFileExt:(NSString*) ext
{
m_dragFileExt = [NSString stringWithString:ext];
[ext retain];
[m_dragFileExt release];
m_dragFileExt = ext;
NSLog(@"drag file ext: %@", m_dragFileExt);
}