diff options
-rw-r--r-- | src/modules/database/dbintf.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/database/dbintf.cpp b/src/modules/database/dbintf.cpp index 4c37e0884a..aaf77aa895 100644 --- a/src/modules/database/dbintf.cpp +++ b/src/modules/database/dbintf.cpp @@ -47,6 +47,11 @@ static INT_PTR srvGetContactCount(WPARAM, LPARAM) static INT_PTR srvDeleteContact(WPARAM wParam, LPARAM)
{
+ DBVARIANT dbv = {0};
+ if ( !db_get_ts((HANDLE)wParam, "ContactPhoto", "File", &dbv)) {
+ DeleteFile(dbv.ptszVal);
+ db_free(&dbv);
+ }
return (currDb) ? currDb->DeleteContact((HANDLE)wParam) : 0;
}
|