]> git.cworth.org Git - apitrace/commit
Reset the container after deleting all the elements.
authorZack Rusin <zack@kde.org>
Sat, 27 Aug 2011 22:49:35 +0000 (18:49 -0400)
committerZack Rusin <zack@kde.org>
Sat, 27 Aug 2011 22:49:35 +0000 (18:49 -0400)
commit03718f44e002669e8b94561d95ad00bd1a51a1ef
treedb787dad5cd92ab60b227e7446772e5623e754bb
parent2d0d8384950e695bd08411710a4144bace77d208
Reset the container after deleting all the elements.

otherwise the size of the containers stays the same but the elements
hold references to items that have been deleted. It causes crashes
if close is called more than once.
trace_parser.cpp