Skip to content

Commit

Permalink
Move destructor of ChainedBindingInfo out of the header
Browse files Browse the repository at this point in the history
  • Loading branch information
xhochy authored and romainthomas committed Dec 11, 2024
1 parent 81b8b6f commit d4fa8d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions include/LIEF/MachO/ChainedBindingInfo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ class LIEF_API ChainedBindingInfo : public BindingInfo {
return info->type() == TYPES::CHAINED;
}

~ChainedBindingInfo() override {
clear();
}
~ChainedBindingInfo() override;

void accept(Visitor& visitor) const override;

Expand Down
4 changes: 4 additions & 0 deletions src/MachO/ChainedBindingInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ ChainedBindingInfo::ChainedBindingInfo(DYLD_CHAINED_FORMAT fmt, bool is_weak) :
is_weak_import_ = is_weak;
}

ChainedBindingInfo::~ChainedBindingInfo() {
clear();
}

ChainedBindingInfo& ChainedBindingInfo::operator=(ChainedBindingInfo other) {
swap(other);
return *this;
Expand Down

0 comments on commit d4fa8d1

Please sign in to comment.