Index: trunk/FACT++/gui/FactGui.h
===================================================================
--- trunk/FACT++/gui/FactGui.h	(revision 13824)
+++ trunk/FACT++/gui/FactGui.h	(revision 13825)
@@ -1254,5 +1254,5 @@
         }
 
-        delete fEventData;
+        delete [] reinterpret_cast<char*>(fEventData);
         fEventData = reinterpret_cast<EVENT*>(new char[d.size()]);
         memcpy(fEventData, d.ptr<void>(), d.size());
@@ -2276,5 +2276,5 @@
     void handleFeedbackDeviation(const DimData &d)
     {
-        if (!CheckSize(d, 2*416*sizeof(float)+2))
+        if (!CheckSize(d, (2*416+2)*sizeof(float)))
             return;
 
@@ -4243,5 +4243,6 @@
             delete i->second;
 
-        delete fEventData;
+        // This is allocated as a chuck of chars
+        delete [] reinterpret_cast<char*>(fEventData);
     }
 };
