diff options
author | Peter Bieringer <pb@bieringer.de> | 2021-02-16 06:35:11 +0100 |
---|---|---|
committer | Peter Bieringer <pb@bieringer.de> | 2021-02-16 06:35:11 +0100 |
commit | 68d74dabd233f91e4d80222d1ed547b9ae00f62f (patch) | |
tree | 99be3514ddd3e4f43570211d9f94102c2761aa36 | |
parent | 97b63a6f883300254372c18a60b9efba25189d06 (diff) | |
download | vdr-plugin-graphlcd-68d74dabd233f91e4d80222d1ed547b9ae00f62f.tar.gz vdr-plugin-graphlcd-68d74dabd233f91e4d80222d1ed547b9ae00f62f.tar.bz2 |
move cleanup also into Stop() to avoid crash
-rw-r--r-- | plugin.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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() |