diff options
author | jimblandy <jimblandy@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2010-04-28 18:16:00 +0000 |
---|---|---|
committer | jimblandy <jimblandy@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2010-04-28 18:16:00 +0000 |
commit | 56e7a3c65df2a89cd35ee13800284dc29fb90aad (patch) | |
tree | a3ad44d4d36cbc3999f5cdcd03ce9633d9850e5f /src/processor/scoped_ptr.h | |
parent | Breakpad Dumper: Move CFI register names to DwarfCFIToModule class. (diff) | |
download | breakpad-56e7a3c65df2a89cd35ee13800284dc29fb90aad.tar.xz |
Breakpad Linux Dumper: Have DumpStabsHandler free accumulated functions if Finalize is not called
The DumpStabsHandler class creates Module::Function objects as it processes
data from the StabsReader, but waits to add the Functions to the Module
until all parsing is complete and its Finalize member function is called,
so that it can compute line and function end addresses that the STABS data
may have left implicit.
If the DumpStabsHandler is destructed before its Finalize method is called,
it fails to free the Functions it has created, but not yet added to the
Module. (Adding a Function to a Module transfers ownership of the Function
to the Module.)
This adds a destructor to DumpStabsHandler which takes care of freeing any
Functions that it still owns.
a=jimblandy, r=thestig
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@576 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/processor/scoped_ptr.h')
0 files changed, 0 insertions, 0 deletions