MT#62181 remove singleton dispose method

The destructor is good enough, and it removes ambiguity to the
singleton's own dispose method.

No functional changes.

Change-Id: I7bd2014cbeaab0eb5104c2674d39dd8d7e38affd
mr13.5
Richard Fuchs 12 months ago
parent 52753143c5
commit bece83be7b

@ -165,8 +165,3 @@ void _RtmpServer::on_stop()
{
ERROR("not yet supported!\n");
}
void _RtmpServer::dispose()
{
ERROR("not yet supported!\n");
}

@ -46,6 +46,10 @@ _AmRtpReceiver::_AmRtpReceiver()
_AmRtpReceiver::~_AmRtpReceiver()
{
for(unsigned int i=0; i<n_receivers; i++){
receivers[i].stop();
receivers[i].join();
}
delete [] receivers;
}
@ -67,14 +71,6 @@ void AmRtpReceiverThread::on_stop()
event_base_loopbreak(ev_base);
}
void _AmRtpReceiver::dispose()
{
for(unsigned int i=0; i<n_receivers; i++){
receivers[i].stop();
receivers[i].join();
}
}
void AmRtpReceiverThread::run()
{
// fake event to prevent the event loop from exiting

@ -95,8 +95,6 @@ protected:
_AmRtpReceiver();
~_AmRtpReceiver();
void dispose();
public:
void start();

@ -35,7 +35,6 @@ public:
{
_inst_m.lock();
if(_instance != NULL){
_instance->T::dispose();
delete _instance;
_instance = NULL;
}

Loading…
Cancel
Save