The problem was that the header was released twice, manually by user and automatically when the Parser itself is destroyed. Changed "getHeader()" to return a const row, such that it cannot be manually released by user. Other rows should not have such problems, unless the programmer tries to destroy a null pointer or to destroy an already freed pointer
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The problem was that the header was released twice, manually by user and automatically when the Parser itself is destroyed. Changed "getHeader()" to return a const row, such that it cannot be manually released by user. Other rows should not have such problems, unless the programmer tries to destroy a null pointer or to destroy an already freed pointer
fixed according to last comment by "talh123"