summaryrefslogtreecommitdiff
path: root/plugins/Utils/mir_options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Utils/mir_options.cpp')
-rw-r--r--plugins/Utils/mir_options.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Utils/mir_options.cpp b/plugins/Utils/mir_options.cpp
index 441fa4cb6a..8a31f3c1ee 100644
--- a/plugins/Utils/mir_options.cpp
+++ b/plugins/Utils/mir_options.cpp
@@ -45,7 +45,7 @@ static TCHAR* MyDBGetContactSettingTString(HANDLE hContact, char* module, char*
if ( !DBGetContactSettingTString(hContact, module, setting, &dbv))
{
lstrcpyn(out, dbv.ptszVal, (int)len);
- DBFreeVariant(&dbv);
+ db_free(&dbv);
}
else
{
@@ -146,7 +146,7 @@ static void LoadOpt(OptPageControl *ctrl, char *module)
if ( !DBGetContactSettingString(NULL, module, ctrl->setting, &dbv))
{
lstrcpynA(tmp, dbv.pszVal, SIZEOF(tmp));
- DBFreeVariant(&dbv);
+ db_free(&dbv);
}
if (tmp[0] != 0)
@@ -281,7 +281,7 @@ INT_PTR CALLBACK SaveOptsDlgProc(OptPageControl *controls, int controlsSize, cha
DBVARIANT dbv = {0};
if ( !DBGetContactSettingString(NULL, module, ctrl->setting, &dbv)) {
lstrcpynA(tmp, dbv.pszVal, SIZEOF(tmp));
- DBFreeVariant(&dbv);
+ db_free(&dbv);
}
if (tmp[0] != 0)