mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
fix segfault in badge destructor
This commit is contained in:
parent
e2c1d2d0ef
commit
2b8c95d2ef
es-core/src
|
@ -37,8 +37,9 @@ class Window;
|
|||
class GuiComponent
|
||||
{
|
||||
public:
|
||||
GuiComponent(Window* window);
|
||||
virtual ~GuiComponent();
|
||||
GuiComponent(Window *window);
|
||||
|
||||
virtual ~GuiComponent() noexcept;
|
||||
|
||||
virtual void textInput(const std::string& text);
|
||||
|
||||
|
|
|
@ -52,6 +52,8 @@ BadgesComponent::BadgesComponent(Window *window)
|
|||
|
||||
BadgesComponent::~BadgesComponent() {
|
||||
mChildren.clear();
|
||||
mBadgeIcons.clear();
|
||||
mImageComponents.clear();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue