--- queensgui/src/containerlist.cpp 2007/07/19 23:44:01 4 +++ queensgui/src/containerlist.cpp 2007/07/25 19:39:37 15 @@ -22,7 +22,7 @@ ContainerList::ContainerList(GUIUpdate* update) : SolutionContainer(update) { - total = -1; + total = 0; } @@ -64,7 +64,8 @@ if (m_halt) return; match_count = 0; - Solution* tmp = (*i)->copy(); + + std::auto_ptr tmp ( (*i)->copy() ); if (mirror) tmp->mirror(); for (int k=0;k(sol)); + total++; } Solution* ContainerList::solution(int index) @@ -102,6 +104,6 @@ break; } } - return *it; + return (*it).get(); }