summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--osdteletext.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/osdteletext.c b/osdteletext.c
index 5f2b7a6..2720ca1 100644
--- a/osdteletext.c
+++ b/osdteletext.c
@@ -114,12 +114,6 @@ cPluginTeletextosd::cPluginTeletextosd(void)
cPluginTeletextosd::~cPluginTeletextosd()
{
// Clean up after yourself!
- if (txtStatus)
- delete txtStatus;
- if(storage) {
- storage->cleanUp();
- delete storage;
- }
}
const char *cPluginTeletextosd::CommandLineHelp(void)
@@ -201,6 +195,10 @@ bool cPluginTeletextosd::Start(void)
void cPluginTeletextosd::Stop(void)
{
DELETENULL(txtStatus);
+ if (storage) {
+ storage->cleanUp();
+ DELETENULL(storage);
+ }
}
void cPluginTeletextosd::initTexts() {