mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-08 08:50:00 +01:00
Fix memory leak stream UDP
This commit is contained in:
@@ -22,6 +22,13 @@ Connection::Connection()
|
||||
receiver_ = nullptr;
|
||||
}
|
||||
|
||||
|
||||
Connection::~Connection()
|
||||
{
|
||||
if (receiver_!=nullptr)
|
||||
delete receiver_;
|
||||
}
|
||||
|
||||
bool Connection::init()
|
||||
{
|
||||
// add default info for myself
|
||||
@@ -161,7 +168,6 @@ void Connection::ask()
|
||||
p << Connection::manager().connections_[0].port_handshake;
|
||||
p << osc::EndMessage;
|
||||
|
||||
|
||||
// loop infinitely
|
||||
while(true)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user