summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Bieringer <pb@bieringer.de>2021-02-16 06:35:11 +0100
committerPeter Bieringer <pb@bieringer.de>2021-02-16 06:35:11 +0100
commit68d74dabd233f91e4d80222d1ed547b9ae00f62f (patch)
tree99be3514ddd3e4f43570211d9f94102c2761aa36
parent97b63a6f883300254372c18a60b9efba25189d06 (diff)
downloadvdr-plugin-graphlcd-68d74dabd233f91e4d80222d1ed547b9ae00f62f.tar.gz
vdr-plugin-graphlcd-68d74dabd233f91e4d80222d1ed547b9ae00f62f.tar.bz2
move cleanup also into Stop() to avoid crash
-rw-r--r--plugin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin.c b/plugin.c
index 1d8cd1e..97a8609 100644
--- a/plugin.c
+++ b/plugin.c
@@ -121,8 +121,6 @@ cPluginGraphLCD::cPluginGraphLCD()
cPluginGraphLCD::~cPluginGraphLCD()
{
- mExtData->ReleaseExtData();
- mExtData = NULL;
}
void cPluginGraphLCD::Stop(void)
@@ -131,6 +129,9 @@ void cPluginGraphLCD::Stop(void)
dsyslog("graphlcd plugin: DisconnectDisplay %d", index);
DisconnectDisplay(index);
};
+
+ mExtData->ReleaseExtData();
+ mExtData = NULL;
}
const char * cPluginGraphLCD::CommandLineHelp()