Fixed some object releasing for OSX system tray icons.