From 337f2562c5b3b5dc99f62b406f13021e502791e7 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Tue, 24 Aug 2010 10:57:42 +0200 Subject: Fix tst_Collections::QTBUG13079_collectionInsideCollection the 'next' was not initialized --- tests/auto/collections/tst_collections.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/auto/collections/tst_collections.cpp b/tests/auto/collections/tst_collections.cpp index 2dc41aa..f81535e 100644 --- a/tests/auto/collections/tst_collections.cpp +++ b/tests/auto/collections/tst_collections.cpp @@ -3659,9 +3659,9 @@ struct QTBUG13079_NodePtr : QSharedData { QTBUG13079_NodePtr *next; QString s; + QTBUG13079_NodePtr() : next(0) {} ~QTBUG13079_NodePtr() { - child.data(); //play with memory - next = 0; + next = child.data(); //play with memory } }; template class C> void QTBUG13079_collectionInsidePtrImpl() -- cgit v0.12