Removing delete condition (img) from commonitor

This commit is contained in:
Walleza1 2019-05-29 19:50:47 +02:00
parent 0e62d96cc5
commit 0f4879fe64

View file

@ -150,9 +150,8 @@ void ComMonitor::Write(Message *msg) {
//cout << "Message sent to monitor: " << str->c_str() << endl;
write(clientID, str.c_str(), str.length());
if (!msg->CompareID(MESSAGE_CAM_IMAGE)) {
delete(msg);
}
// Delete msg
delete(msg);
// Call user method after write
Write_Post();