From 2257c9ecd7d0bf1af7c7421c443a3e57a10fc181 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 12 May 2016 21:54:40 +0000 Subject: memleak fixed git-svn-id: http://svn.miranda-ng.org/main/trunk@16821 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dropbox/src/dropbox.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/Dropbox/src/dropbox.cpp b/plugins/Dropbox/src/dropbox.cpp index 954e9191c4..f7b4b62731 100644 --- a/plugins/Dropbox/src/dropbox.cpp +++ b/plugins/Dropbox/src/dropbox.cpp @@ -62,7 +62,8 @@ MCONTACT CDropbox::GetDefaultContact() bool CDropbox::HasAccessToken() { - return db_get_sa(NULL, MODULE, "TokenSecret") != NULL; + ptrA token(db_get_sa(NULL, MODULE, "TokenSecret")); + return token != NULL; } void CDropbox::RequestAccountInfo(void *p) -- cgit v1.2.3