just a small memory leak and a possible null ptr reference.
it would be very nice if someone could apply svn:eol-style native to the source files in the svn.
doing this on linux would be something like:
for i in $(ls *.h *.cpp Makefile); do svn ps svn:eol-style native $i; done
That would really help to edit the code.