mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-08 00:44:48 -04:00
Added a destroy virtual method to all source input plugin main classes
This commit is contained in:
@@ -57,6 +57,11 @@ RTLSDRInput::~RTLSDRInput()
|
||||
closeDevice();
|
||||
}
|
||||
|
||||
void RTLSDRInput::destroy()
|
||||
{
|
||||
delete this;
|
||||
}
|
||||
|
||||
bool RTLSDRInput::openDevice()
|
||||
{
|
||||
if (m_dev != 0)
|
||||
|
||||
@@ -106,6 +106,7 @@ public:
|
||||
|
||||
RTLSDRInput(DeviceSourceAPI *deviceAPI);
|
||||
virtual ~RTLSDRInput();
|
||||
virtual void destroy();
|
||||
|
||||
virtual bool start();
|
||||
virtual void stop();
|
||||
|
||||
Reference in New Issue
Block a user