[Red5commits] [1734] fixed memory leak when closing RTMPT connections (APPSERVER-61)
jbauch
luke at codegent.com
Wed Feb 14 18:30:08 EST 2007
fixed memory leak when closing RTMPT connections (APPSERVER-61)
Timestamp: 02/14/07 18:20:49 EST (less than one hour ago)
Change: 1734
Author: jbauch
Files (see diff or trac for details):
doc/trunk/changelog.txt
java/server/trunk/src/org/red5/server/net/rtmpt/RTMPTConnection.java
Trac: http://mirror1.cvsdude.com/trac/osflash/red5/changeset/1734
Index: /java/server/trunk/src/org/red5/server/net/rtmpt/RTMPTConnection.java
===================================================================
--- /java/server/trunk/src/org/red5/server/net/rtmpt/RTMPTConnection.java (revision 1698)
+++ /java/server/trunk/src/org/red5/server/net/rtmpt/RTMPTConnection.java (revision 1734)
@@ -182,11 +182,7 @@
return;
- if (this.buffer != null) {
- this.buffer = null;
- }
- for (int b=0;b < pendingMessages.size();b++) {
- pendingMessages.add(b, null);
- }
+ buffer = null;
pendingMessages.clear();
+ notifyMessages.clear();
state.setState(RTMP.STATE_DISCONNECTED);
synchronized (idSet) {
Index: /doc/trunk/changelog.txt
===================================================================
--- /doc/trunk/changelog.txt (revision 1732)
+++ /doc/trunk/changelog.txt (revision 1734)
@@ -8,6 +8,7 @@
------------------------
Bugfixes:
-- serialization of Maps with non-number keys fixed (APPSERVER-60)
+- serialization of Maps with non-number keys fixed (Jira APPSERVER-60)
- multiple IO processor threads are used by default
+- memory leak when closing RTMPT connections fixed (Jira APPSERVER-61)
Note:
Diffs are chopped if more than 25k.
This is to get past the limit on the mailing list.
More information about the Red5commits
mailing list