diff options
-rw-r--r-- | backends/plugins/elf-loader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/plugins/elf-loader.h b/backends/plugins/elf-loader.h index df0427e429..7150141567 100644 --- a/backends/plugins/elf-loader.h +++ b/backends/plugins/elf-loader.h @@ -71,6 +71,7 @@ public: DLObject() : _segment(NULL), _symtab(NULL), _strtab(NULL), _symbol_cnt(0), _symtab_sect(-1), _dtors_start(NULL), _dtors_end(NULL), _segmentSize(0) {} + virtual ~DLObject() { unload(); } }; #endif /* ELF_LOADER_H */ |