diff --git a/src/lib/platform/OSXDragView.m b/src/lib/platform/OSXDragView.m index d32c493a..81c14e30 100644 --- a/src/lib/platform/OSXDragView.m +++ b/src/lib/platform/OSXDragView.m @@ -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); }