Commit 4b412275 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed small memory leaking in occupantsByFullJID. JM-530

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3322 b35dd754-fafc-0310-a699-88a17e54d16e
parent a0db468f
...@@ -361,7 +361,7 @@ public class MUCRoomImpl implements MUCRoom { ...@@ -361,7 +361,7 @@ public class MUCRoomImpl implements MUCRoom {
throw new UserNotFoundException(); throw new UserNotFoundException();
} }
public MUCRole getOccupantByFullJID(String jid) throws UserNotFoundException { public MUCRole getOccupantByFullJID(JID jid) throws UserNotFoundException {
MUCRole role = occupantsByFullJID.get(jid); MUCRole role = occupantsByFullJID.get(jid);
if (role != null) { if (role != null) {
return role; return role;
...@@ -664,7 +664,7 @@ public class MUCRoomImpl implements MUCRoom { ...@@ -664,7 +664,7 @@ public class MUCRoomImpl implements MUCRoom {
occupantsByBareJID.remove(user.getAddress().toBareJID()); occupantsByBareJID.remove(user.getAddress().toBareJID());
} }
} }
occupantsByFullJID.remove(user.getAddress().toString()); occupantsByFullJID.remove(user.getAddress());
} }
public void destroyRoom(String alternateJID, String reason) { public void destroyRoom(String alternateJID, String reason) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment