From 73df2c7a252eb8c523222928de3d5ed98d78519b Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 6 Dec 2009 20:22:21 +0000 Subject: (svn r18418) -Fix [FS#3298]: under some circumstances a pointer could be left untouched and then freed. Make sure this doesn't happen by ensuring it starts out as NULL instead of 'garbage'. --- src/ai/ai_info.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ai/ai_info.hpp') diff --git a/src/ai/ai_info.hpp b/src/ai/ai_info.hpp index 6716cf95e..605664fbb 100644 --- a/src/ai/ai_info.hpp +++ b/src/ai/ai_info.hpp @@ -58,6 +58,7 @@ class AIInfo : public AIFileInfo { public: static const char *GetClassName() { return "AIInfo"; } + AIInfo(); ~AIInfo(); /** -- cgit v1.2.3-54-g00ecf