From 274f1540fea0d976def2486b0725b0b966ccf4f4 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Fri, 4 Jan 2013 16:53:17 +0100 Subject: destroy the controller object within Stop() due to lot of static objects in vdr, implicit destruction of objects has unpredictable effects :( --- plugin.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin.cc b/plugin.cc index 50ffe84..fa595d0 100644 --- a/plugin.cc +++ b/plugin.cc @@ -168,6 +168,8 @@ bool cInputDevicePlugin::Start(void) void cInputDevicePlugin::Stop(void) { controller_->stop(); + delete controller_; + controller_ = NULL; } VDRPLUGINCREATOR(cInputDevicePlugin); // Don't touch this! -- cgit v1.2.3