diff options
-rw-r--r-- | src/windows/native/sun/windows/awt_MenuItem.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/windows/native/sun/windows/awt_MenuItem.cpp b/src/windows/native/sun/windows/awt_MenuItem.cpp index 51fc47718..33abb6633 100644 --- a/src/windows/native/sun/windows/awt_MenuItem.cpp +++ b/src/windows/native/sun/windows/awt_MenuItem.cpp @@ -114,6 +114,7 @@ void AwtMenuItem::Dispose() if (m_peerObject != NULL) { JNI_SET_PDATA(m_peerObject, NULL); env->DeleteGlobalRef(m_peerObject); + m_peerObject = NULL; } AwtObject::Dispose(); |