Skip to content

Commit

Permalink
Fixes the Release builds on MSVC
Browse files Browse the repository at this point in the history
It seems, there is a bug in the compiler or linker, that optimizes out
ItemProperties destructor from the binary, along with the VTable
  • Loading branch information
crsib committed Mar 27, 2024
1 parent 2315371 commit 409d239
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions libraries/lib-menus/MenuRegistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ auto MenuItems::GetOrdering() const -> Ordering {
}
auto MenuItems::GetProperties() const -> Properties { return Inline; }

ItemProperties::~ItemProperties() {}

CommandHandlerFinder FinderScope::sFinder =
[](AudacityProject &project) -> CommandHandlerObject & {
// If this default finder function is reached, then FinderScope should
Expand Down
2 changes: 1 addition & 1 deletion libraries/lib-menus/MenuRegistry.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ namespace MenuRegistry {
Whole,
Extension,
};
virtual ~ItemProperties();
virtual ~ItemProperties() = default;
virtual Properties GetProperties() const = 0;
};

Expand Down

0 comments on commit 409d239

Please sign in to comment.