Calling PHYSFS_freeList in destructor
authorTobias Markus <tobbi@mozilla-uk.org>
Sun, 2 Feb 2014 17:33:58 +0000 (18:33 +0100)
committerTobias Markus <tobbi@mozilla-uk.org>
Sun, 2 Feb 2014 17:33:58 +0000 (18:33 +0100)
src/lisp/parser.cpp

index 8bc9005..f9759dc 100644 (file)
@@ -55,7 +55,7 @@ Parser::~Parser()
   obstack_free(&obst, NULL);
   delete lexer;
   delete dictionary_manager;
-  delete searchpath;
+  PHYSFS_freeList(searchpath);
 }
 
 static std::string dirname(const std::string& filename)