that's why i suggested that you should create unit tests. as they'll right away such errors if you valgrind it.
and anyways we require to have unit tests for new classes.