From 1e089e1f91c7280712d03947d60c0d922a414c34 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 23 May 2015 21:53:52 +0000 Subject: FTPFile to use standard locks git-svn-id: http://svn.miranda-ng.org/main/trunk@13806 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FTPFileYM/src/manager.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins/FTPFileYM/src/manager.cpp') diff --git a/plugins/FTPFileYM/src/manager.cpp b/plugins/FTPFileYM/src/manager.cpp index 7e5fa09bae..cee488915b 100644 --- a/plugins/FTPFileYM/src/manager.cpp +++ b/plugins/FTPFileYM/src/manager.cpp @@ -120,7 +120,7 @@ void Manager::fillTree() tvi.item.stateMask = TVIS_STATEIMAGEMASK; tvi.item.state = TreeItem::_UNCHECKED(); - Lock *lock = new Lock(DBEntry::mutexDB); + mir_cslock lock(DBEntry::mutexDB); DBEntry *entry = DBEntry::getFirts(); while (entry != NULL) @@ -136,8 +136,6 @@ void Manager::fillTree() entry = DBEntry::getNext(entry); } - - delete lock; } int Manager::indexOf(HTREEITEM handle) -- cgit v1.2.3