diff --git a/software/raspberry/superviseur-robot/lib/commonitor.cpp b/software/raspberry/superviseur-robot/lib/commonitor.cpp index bb64388..7caa443 100644 --- a/software/raspberry/superviseur-robot/lib/commonitor.cpp +++ b/software/raspberry/superviseur-robot/lib/commonitor.cpp @@ -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();