diff options
author | George Hazan <george.hazan@gmail.com> | 2014-07-22 14:54:36 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-07-22 14:54:36 +0000 |
commit | ae4274ae6c7425b37f9f75032b38301e04dbd71e (patch) | |
tree | 8d65a7f0752687f3aab947eb3aa5420d6c0a7f2d | |
parent | 2ecaa109390d1faf70e7548dcd31c6e104996b24 (diff) |
fix for assigning DWORDS in the same database variable that held a string before
git-svn-id: http://svn.miranda-ng.org/main/trunk@9920 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | src/modules/database/mdatabasecache.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/database/mdatabasecache.cpp b/src/modules/database/mdatabasecache.cpp index 4e2b45ac7b..1705066139 100644 --- a/src/modules/database/mdatabasecache.cpp +++ b/src/modules/database/mdatabasecache.cpp @@ -159,10 +159,8 @@ void MDatabaseCache::SetCachedVariant(DBVARIANT* s /* new */, DBVARIANT* d /* ca d->pszVal = (char*)HeapAlloc(m_hCacheHeap, 0, strlen(s->pszVal) + 1);
strcpy(d->pszVal, s->pszVal);
}
- else if (szSave != NULL) {
+ else if (szSave != NULL)
HeapFree(m_hCacheHeap, 0, szSave);
- d->pszVal = NULL;
- }
}
void MDatabaseCache::FreeCachedVariant(DBVARIANT* V)
|