* archive.cc (include_member): Destroy Read_symbols_data object before
authorCary Coutant <ccoutant@google.com>
Wed, 7 Apr 2010 22:58:23 +0000 (22:58 +0000)
committerCary Coutant <ccoutant@google.com>
Wed, 7 Apr 2010 22:58:23 +0000 (22:58 +0000)
commit00698fc57c3f25b4a99935bb625aa254c08c6dca
tree1378fa715297cca3df93545e7e19a2c36fb15803
parent7296d9338774c74e5a525f0c8f31c20f367997f5
* archive.cc (include_member): Destroy Read_symbols_data object before
releasing file.
* object.cc (Read_symbols_data::~Read_symbols_data) New destructor.
* object.h (Read_symbols_data::Read_symbols_data) New constructor.
(Read_symbols_data::~Read_symbols_data) New destructor.
(Section_relocs::Section_relocs) New constructor.
(Section_relocs::~Section_relocs) New destructor.
(Read_relocs_data::Read_relocs_data) New constructor.
(Read_relocs_data::~Read_relocs_data) New destructor.
* testsuite/binary_unittest.cc (Sized_binary_test): Set sd member
pointers to NULL after deleting.
gold/ChangeLog
gold/archive.cc
gold/object.cc
gold/object.h
gold/testsuite/binary_unittest.cc