summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)