Skip to content

Commit 6ae3b33

Browse files
authored
Merge pull request #208 from scratchcpp/base_class_virtual_destructor
Add a virtual destructor to Asset
2 parents fb4ef98 + 609fdf9 commit 6ae3b33

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/scratchcpp/asset.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ class LIBSCRATCHCPP_EXPORT Asset : public Entity
1818
Asset(const std::string &name, const std::string &id, const std::string &format);
1919
Asset(const Asset &) = delete;
2020

21+
virtual ~Asset() { }
22+
2123
void setId(const std::string &id);
2224

2325
const std::string &name() const;

0 commit comments

Comments
 (0)