Fix several memory leaks. Also, use monitors around sensetive structures.

git-svn-id: svn://10.0.0.236/trunk@169795 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pedemont%us.ibm.com
2005-02-24 23:17:36 +00:00
parent f0f745d3f0
commit 58c0bc8ed5
7 changed files with 251 additions and 105 deletions

View File

@@ -77,6 +77,10 @@ public:
// getter for mJavaObject
jobject GetJavaObject();
// Deletes the strong global ref for the Java object, so it can be garbage
// collected if necessary. See DestroyXPTCMappingEnum().
void DeleteStrongRef();
private:
NS_IMETHOD_(nsrefcnt) AddRefInternal();
NS_IMETHOD_(nsrefcnt) ReleaseInternal();