Fixed same menu item select crash !

added propper deinit of ressources and unload function for windows to correct the crash...