Now that we use the standard resolution observer mechanism, we need to
decrement the reference count of the client object as it is normally incremented for every resolution listener. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4248 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -272,6 +272,12 @@ public class ClientManager
|
|||||||
// documentation inherited from interface ClientResolutionListener
|
// documentation inherited from interface ClientResolutionListener
|
||||||
public synchronized void clientResolved (Name username, ClientObject clobj)
|
public synchronized void clientResolved (Name username, ClientObject clobj)
|
||||||
{
|
{
|
||||||
|
// because we added ourselves as a client resolution listener, the
|
||||||
|
// client object reference count was increased, but we're not a real
|
||||||
|
// resolver (who would have to call releaseClientObject() to release
|
||||||
|
// their reference), so we release our reference immediately
|
||||||
|
clobj.release();
|
||||||
|
|
||||||
// stuff the object into the mapping table
|
// stuff the object into the mapping table
|
||||||
_objmap.put(username, clobj);
|
_objmap.put(username, clobj);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user