fix segfault in badge destructor

This commit is contained in:
Sophia Hadash 2021-09-26 23:04:09 +02:00
parent e2c1d2d0ef
commit 2b8c95d2ef
3 changed files with 6 additions and 3 deletions

View file

@ -38,7 +38,8 @@ class GuiComponent
{
public:
GuiComponent(Window *window);
virtual ~GuiComponent();
virtual ~GuiComponent() noexcept;
virtual void textInput(const std::string& text);

View file

@ -52,6 +52,8 @@ BadgesComponent::BadgesComponent(Window *window)
BadgesComponent::~BadgesComponent() {
mChildren.clear();
mBadgeIcons.clear();
mImageComponents.clear();
}

View file

@ -47,7 +47,7 @@ public:
void rasterizeAt(size_t width, size_t height);
glm::vec2 getSourceImageSize() const { return mSourceSize; }
virtual ~TextureResource();
virtual ~TextureResource() noexcept;
bool isInitialized() const { return true; }
bool isTiled() const;