diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-09-29 14:44:04 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-09-29 14:44:04 +0000 |
commit | d09782a435ae4a9229b853e53e603d4c621df3a3 (patch) | |
tree | 25acbd0e49c8d901bd00b9b9bf44a84e6c1257e1 /protocols/FacebookRM/src/messages.cpp | |
parent | b728069180bcea77894d344753a7fdfc4f30a061 (diff) |
Facebook: cleanup using ptrA, ptrT
git-svn-id: http://svn.miranda-ng.org/main/trunk@6270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/messages.cpp')
-rw-r--r-- | protocols/FacebookRM/src/messages.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp index 7c36767524..604ca2d2ee 100644 --- a/protocols/FacebookRM/src/messages.cpp +++ b/protocols/FacebookRM/src/messages.cpp @@ -210,7 +210,7 @@ void FacebookProto::ParseSmileys(std::string message, HANDLE hContact) } else {
facy.save_url(url, filename, nlc);
}
- TCHAR *path = _tcsdup(filename.c_str());
+ ptrT path( _tcsdup(filename.c_str()));
SMADD_CONT cont;
cont.cbSize = sizeof(SMADD_CONT);
@@ -219,7 +219,6 @@ void FacebookProto::ParseSmileys(std::string message, HANDLE hContact) cont.path = path;
CallService(MS_SMILEYADD_LOADCONTACTSMILEYS, 0, (LPARAM)&cont);
- mir_free(path);
}
Netlib_CloseHandle(nlc);
}
|