6756774: fstdebug jvm fails with assertion (result != deleted_handle(),"Used a deleted global handle.")
authordcherepanov
Fri, 22 Jan 2010 19:47:18 +0300
changeset 4835 dad88ce69af3
parent 4834 2571be1e8f1d
child 4836 6c4ad056928d
6756774: fstdebug jvm fails with assertion (result != deleted_handle(),"Used a deleted global handle.") Reviewed-by: art, anthony
jdk/src/windows/native/sun/windows/awt_MenuItem.cpp
--- a/jdk/src/windows/native/sun/windows/awt_MenuItem.cpp	Wed Jan 20 01:33:49 2010 +0300
+++ b/jdk/src/windows/native/sun/windows/awt_MenuItem.cpp	Fri Jan 22 19:47:18 2010 +0300
@@ -114,6 +114,7 @@
     if (m_peerObject != NULL) {
         JNI_SET_PDATA(m_peerObject, NULL);
         env->DeleteGlobalRef(m_peerObject);
+        m_peerObject = NULL;
     }
 
     AwtObject::Dispose();