Did you create muteevent with new? deleting something not created with new could give this error. Try to avoid using new / delete altogether - use an STL container and / or smart pointers instead. You shouldn't need new for items being put into a vector, vector already puts it's data on the heap.