OS X: fixed NSString and NSOpenPanelDelegate_ leaking