From 3d028ac24af1f6d1183717c55d65e291836c37d9 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 1 Feb 2011 14:49:34 +1100 Subject: Made destructor of OptionSet virtual to ensure all destructors called. --- lexlib/OptionSet.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lexlib/OptionSet.h') diff --git a/lexlib/OptionSet.h b/lexlib/OptionSet.h index 277ca7a35..873ac8b6c 100644 --- a/lexlib/OptionSet.h +++ b/lexlib/OptionSet.h @@ -80,6 +80,8 @@ class OptionSet { names += name; } public: + virtual ~OptionSet() { + } void DefineProperty(const char *name, plcob pb, std::string description="") { nameToDef[name] = Option(pb, description); AppendName(name); -- cgit v1.2.3