From 942beff30d10baec95274eed06e1d995538c7f48 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Tue, 11 Nov 2008 20:51:54 +0000 Subject: fix for a possible memory corruption git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@429 4f64403b-2f21-0410-a795-97e2b3489a10 --- metacontacts/meta_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'metacontacts/meta_main.c') diff --git a/metacontacts/meta_main.c b/metacontacts/meta_main.c index 5a526c1..f8184e0 100644 --- a/metacontacts/meta_main.c +++ b/metacontacts/meta_main.c @@ -239,7 +239,8 @@ int __declspec(dllexport)Load(PLUGINLINK *link) DBVARIANT dbv; if (DBGetContactSetting(NULL, "KnownModules", META_PROTO, &dbv)) DBWriteContactSettingString(NULL, "KnownModules", META_PROTO, META_PROTO); - DBFreeVariant(&dbv); + else + DBFreeVariant(&dbv); } ZeroMemory(&pd,sizeof(pd)); -- cgit v1.2.3