This commit is contained in:
Glenn Maynard
2007-04-19 13:41:54 +00:00
parent 53e0736f1e
commit 22ad4c9a2a
+2 -3
View File
@@ -135,9 +135,8 @@ void Bookkeeper::WriteToDisk()
return;
}
XNode *xml = CreateNode();
XmlFileUtil::SaveToFile( xml, f );
delete xml;
auto_ptr<XNode> xml( CreateNode() );
XmlFileUtil::SaveToFile( xml.get(), f );
}
void Bookkeeper::CoinInserted()