Clean up cppcheck warnings about handling of allocated memory in SysEx class
authorNathan Stewart <therealnathanstewart@gmail.com>
Fri, 7 Oct 2016 16:38:00 +0000 (12:38 -0400)
committerRobin Gareus <robin@gareus.org>
Fri, 7 Oct 2016 17:49:00 +0000 (19:49 +0200)
gtk2_ardour/sys_ex.cc
gtk2_ardour/sys_ex.h

index b6251938a797c5fa1b59346fa36eaf17134a013d..f3e02b1253f7e8081ebe37783326189b3ddbe1ee 100644 (file)
@@ -45,6 +45,8 @@ SysEx::SysEx (
 
 SysEx::~SysEx()
 {
+       delete _flag;
+       _flag = 0;
 }
 
 bool
index 709841cabbce9d4dbd157b970498ca9287732a5f..12904827d583b43ab22af2cc89eb731385f057b1 100644 (file)
@@ -46,7 +46,7 @@ public:
 
 private:
        bool event_handler (GdkEvent* ev);
-
+       SysEx(const SysEx& rhs){}
        ArdourCanvas::Flag* _flag;
 };