gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/rtmp r9595: Delete the temporary objects u


From: rob
Subject: [Gnash-commit] /srv/bzr/gnash/rtmp r9595: Delete the temporary objects used to construct a connect message.
Date: Tue, 26 Aug 2008 16:48:37 -0600
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9595
committer: address@hidden
branch nick: rtmp
timestamp: Tue 2008-08-26 16:48:37 -0600
message:
  Delete the temporary objects used to construct a connect message.
modified:
  libnet/rtmp_client.cpp
=== modified file 'libnet/rtmp_client.cpp'
--- a/libnet/rtmp_client.cpp    2008-08-14 04:24:41 +0000
+++ b/libnet/rtmp_client.cpp    2008-08-26 22:48:37 +0000
@@ -83,8 +83,6 @@
     connect.makeString("connect");
 
     Element connum;
-//     const char *connumStr = "00 00 00 00 00 00 f0 3f";
-//     Buffer *connumBuf = hex2mem(connumStr);
     // update the counter for the number of connections. This number is used 
heavily
     // in RTMP to help keep communications clear when there are multiple 
streams.
     _connections++;
@@ -147,21 +145,20 @@
     objencodingnode->makeNumber("objectEncoding", 0.0);
     obj.addProperty(objencodingnode);
     
-//    size_t total_size = 227;
-//     Buffer *out = encodeHeader(0x3, RTMP::HEADER_12, total_size,
-//                                      RTMP::INVOKE, RTMP::FROM_CLIENT);
-//     const char *rtmpStr = "03 00 00 04 00 01 1f 14 00 00 00 00";
-//     Buffer *rtmpBuf = hex2mem(rtmpStr);
     Buffer *conobj = connect.encode();
     Buffer *numobj = connum.encode();
     Buffer *encobj = obj.encode();
 
     Buffer *buf = new Buffer(conobj->size() + numobj->size() + encobj->size());
-//    buf->append(out);
     buf->append(conobj);
     buf->append(numobj);
     buf->append(encobj);
 
+    // We don't need these temporary buffers anymore
+    delete conobj;
+    delete numobj;
+    delete encobj;
+    
     return buf;
 }
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]