diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-23 21:53:52 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-23 21:53:52 +0000 |
commit | 1e089e1f91c7280712d03947d60c0d922a414c34 (patch) | |
tree | 0baeff1d89a5195c5327d3d03b16fc112d163750 /plugins/FTPFileYM/src/deletetimer.cpp | |
parent | 42f33aaf630e67c1b25d6cf9ca2ba1886e88d2f6 (diff) |
FTPFile to use standard locks
git-svn-id: http://svn.miranda-ng.org/main/trunk@13806 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FTPFileYM/src/deletetimer.cpp')
-rw-r--r-- | plugins/FTPFileYM/src/deletetimer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/FTPFileYM/src/deletetimer.cpp b/plugins/FTPFileYM/src/deletetimer.cpp index 2534069a0d..05aeaff64e 100644 --- a/plugins/FTPFileYM/src/deletetimer.cpp +++ b/plugins/FTPFileYM/src/deletetimer.cpp @@ -53,7 +53,7 @@ void DeleteTimer::stop() void CALLBACK DeleteTimer::AutoDeleteTimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
{
- Lock *lock = new Lock(DBEntry::mutexDB);
+ mir_cslock lock(DBEntry::mutexDB);
DBEntry *entry = DBEntry::getFirts();
while (entry != NULL)
@@ -66,6 +66,4 @@ void CALLBACK DeleteTimer::AutoDeleteTimerProc(HWND hwnd, UINT uMsg, UINT_PTR id entry = DBEntry::getNext(entry);
}
-
- delete lock;
}
\ No newline at end of file |