1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-07 08:24:43 -04:00

Added a destroy virtual method to all source input plugin main classes

This commit is contained in:
f4exb
2017-09-15 02:32:30 +02:00
parent a52ac66710
commit 3606ab2cf2
24 changed files with 71 additions and 0 deletions
@@ -58,6 +58,11 @@ PlutoSDRInput::~PlutoSDRInput()
resumeBuddies();
}
void PlutoSDRInput::destroy()
{
delete this;
}
bool PlutoSDRInput::start()
{
if (!m_deviceShared.m_deviceParams->getBox()) {
@@ -76,6 +76,7 @@ public:
PlutoSDRInput(DeviceSourceAPI *deviceAPI);
~PlutoSDRInput();
virtual void destroy();
virtual bool start();
virtual void stop();