gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/rtmp r9601: set the name and buffer to zer


From: rob
Subject: [Gnash-commit] /srv/bzr/gnash/rtmp r9601: set the name and buffer to zero after clearing
Date: Wed, 27 Aug 2008 19:19:28 -0600
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9601
committer: address@hidden
branch nick: rtmp
timestamp: Wed 2008-08-27 19:19:28 -0600
message:
  set the name and buffer to zero after clearing
modified:
  libamf/element.cpp
=== modified file 'libamf/element.cpp'
--- a/libamf/element.cpp        2008-08-27 16:39:49 +0000
+++ b/libamf/element.cpp        2008-08-28 01:19:28 +0000
@@ -84,7 +84,7 @@
     // appears to be that _buffer has a bogus address that doesn't match any 
allocated
     // Element, we assume this is a bug in our test case, but add comment here 
to be
     // paranoid.
-    delete _buffer;
+//    delete _buffer;
     delete[] _name;
 }
 
@@ -270,7 +270,9 @@
 {
 //    GNASH_REPORT_FUNCTION;
        delete [] _name;
+       _name = 0;
        delete _buffer;
+       _buffer = 0;
 }
 
 Network::byte_t *


reply via email to

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