From 2390e4c01835506f53e80c796ed360befd768c3b Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 9 May 2010 19:28:13 +0200 Subject: before set the background of a frame, free old one --- src/menu/frame.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/menu/frame.cpp') 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; } -- cgit v1.2.3