summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDom Lachowicz <domlachowicz@gmail.com>2009-10-26 14:11:15 +0000
committerDom Lachowicz <domlachowicz@gmail.com>2009-10-26 14:11:15 +0000
commit10b13071c72cef8c14724dc2a191ef0aa57f840b (patch)
tree0b3142f28942cf1d4ce99a0719d58f5ed80217b9
parent917752367bd9e85669b16cbfad977698b69a4006 (diff)
downloadenchant-10b13071c72cef8c14724dc2a191ef0aa57f840b.tar.gz
Registry handle not closed in enchant_get_registry_value_ex
hKey handle should be closed. From Pierre Joye <pierre.php@gmail.com> http://bugzilla.abisource.com/show_bug.cgi?id=12409 git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@28395 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r--src/enchant.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/enchant.c b/src/enchant.c
index 007aad9..d51e3e6 100644
--- a/src/enchant.c
+++ b/src/enchant.c
@@ -394,6 +394,7 @@ enchant_get_registry_value_ex (int current_user, const char * const prefix, cons
wszValue = g_new0(WCHAR, dwSize + 1);
RegQueryValueExW(hKey, uKey, NULL, &lType, (LPBYTE) wszValue, &dwSize);
}
+ RegCloseKey(hKey);
}
if(wszValue && *wszValue)