Changeset 13825
- Timestamp:
- 05/23/12 10:30:21 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r13824 r13825 1254 1254 } 1255 1255 1256 delete fEventData;1256 delete [] reinterpret_cast<char*>(fEventData); 1257 1257 fEventData = reinterpret_cast<EVENT*>(new char[d.size()]); 1258 1258 memcpy(fEventData, d.ptr<void>(), d.size()); … … 2276 2276 void handleFeedbackDeviation(const DimData &d) 2277 2277 { 2278 if (!CheckSize(d, 2*416*sizeof(float)+2))2278 if (!CheckSize(d, (2*416+2)*sizeof(float))) 2279 2279 return; 2280 2280 … … 4243 4243 delete i->second; 4244 4244 4245 delete fEventData; 4245 // This is allocated as a chuck of chars 4246 delete [] reinterpret_cast<char*>(fEventData); 4246 4247 } 4247 4248 };
Note:
See TracChangeset
for help on using the changeset viewer.