summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/VypressChat/contacts.c
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-04-04 14:27:04 +0000
committerRobert Pösel <robyer@seznam.cz>2014-04-04 14:27:04 +0000
commitc7181615b01d42717df5a4cc557995fe8970e555 (patch)
tree829b619062f5630b15701a5faaaf16019b893ae6 /plugins/!NotAdopted/VypressChat/contacts.c
parente08dd78ccf05f9d5d768e5436fcfc5e8126356fe (diff)
Partial adopttion of VypressChat and WinPopup plugins
git-svn-id: http://svn.miranda-ng.org/main/trunk@8849 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!NotAdopted/VypressChat/contacts.c')
-rw-r--r--plugins/!NotAdopted/VypressChat/contacts.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/!NotAdopted/VypressChat/contacts.c b/plugins/!NotAdopted/VypressChat/contacts.c
index 5274900624..1a0cf2ee40 100644
--- a/plugins/!NotAdopted/VypressChat/contacts.c
+++ b/plugins/!NotAdopted/VypressChat/contacts.c
@@ -91,7 +91,7 @@ static int contacts_add_queued_message(
CallService(MS_DB_CONTACT_WRITESETTING, (WPARAM)hContact, (LPARAM)&cws);
free(new_data);
- DBFreeVariant(&dbv);
+ db_free(&dbv);
return 0;
}
@@ -137,7 +137,7 @@ static char * contacts_fetch_queued_message(
CallService(MS_DB_CONTACT_WRITESETTING, (WPARAM)hContact, (LPARAM)&cws);
}
- DBFreeVariant(&dbv);
+ db_free(&dbv);
return text;
}
@@ -350,7 +350,7 @@ char * contacts_get_contact_property(
if(dbv.type == DBVT_ASCIIZ) {
value = strdup(dbv.pszVal);
}
- DBFreeVariant(&dbv);
+ db_free(&dbv);
}
if(value == NULL)
value = strdup("(unknown)");
@@ -448,7 +448,7 @@ char * contacts_get_nickname(HANDLE hContact)
db_get(hContact, VQCHAT_PROTO, "Nick", &dbv);
nickname = util_loc2utf(dbv.pszVal);
- DBFreeVariant(&dbv);
+ db_free(&dbv);
} else {
nickname = strdup("(null)");
}
@@ -679,7 +679,7 @@ int contacts_is_user_contact(HANDLE hContact)
/* check that the contact has Nick set */
if(db_get(hContact, VQCHAT_PROTO, "Nick", &dbv)) return 0;
if(dbv.type != DBVT_ASCIIZ) return 0;
- DBFreeVariant(&dbv);
+ db_free(&dbv);
/* check if this is a chatroom */
if(db_byte_get(hContact, VQCHAT_PROTO, "ChatRoom", 0))