[tor-commits] [flashproxy/master] Simpler reclaiming of RTMFPSocket buffer space.

dcf at torproject.org dcf at torproject.org
Sun Jul 24 03:26:57 UTC 2011


commit ee02ad3fb904c10aaabdde44fd4dffbf3cde442e
Author: David Fifield <david at bamsoftware.com>
Date:   Sun Jul 24 03:21:48 2011 +0000

    Simpler reclaiming of RTMFPSocket buffer space.
---
 RTMFPSocket.as |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/RTMFPSocket.as b/RTMFPSocket.as
index 4dd54c5..421f9cc 100644
--- a/RTMFPSocket.as
+++ b/RTMFPSocket.as
@@ -192,8 +192,7 @@ package
             buffer.readBytes(output, offset, length);
             if (buffer.bytesAvailable == 0) {
                 /* Reclaim memory space. */
-                buffer.position = 0;
-                buffer.length = 0;
+                buffer.clear();
             }
         }
 



More information about the tor-commits mailing list