Bug 333420 - Fix build break when building with gcj.

This commit is contained in:
[email protected] committed 2006-04-12 21:28:35 +00:00
1 parent 151271217c
commit a97f3cb3ed
1 file changed
+3 -1
@@ -584,7 +584,9 @@ NativeToJavaProxyMap::Remove(JNIEnv* env, nsISupports* aNativeObject,
PR_Free(iid_str);
#endif
env->DeleteWeakGlobalRef(item->javaObject);
jweak weakref = NS_STATIC_CAST(jweak,
NS_CONST_CAST(jobject, item->javaObject));
env->DeleteWeakGlobalRef(weakref);
if (item == e->list) {
e->list = item->next;
if (e->list == nsnull)