aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/menu/frame.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/menu/frame.cpp b/src/menu/frame.cpp
index 08cc833a..7c05a146 100644
--- a/src/menu/frame.cpp
+++ b/src/menu/frame.cpp
@@ -48,6 +48,10 @@ namespace usdx
void Frame::set_background(FrameBackground* background)
{
+ if (this->background) {
+ delete this->background;
+ }
+
this->background = background;
}