From 72b15b42239735bf91b67c3e1210abf410b0bf1c Mon Sep 17 00:00:00 2001 From: David Kelly Date: Tue, 29 Aug 2017 20:28:57 -0700 Subject: [PATCH] fix comment --- libraries/ui/src/ui/ImageProvider.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libraries/ui/src/ui/ImageProvider.cpp b/libraries/ui/src/ui/ImageProvider.cpp index 378b93527c..6398e6fad2 100644 --- a/libraries/ui/src/ui/ImageProvider.cpp +++ b/libraries/ui/src/ui/ImageProvider.cpp @@ -19,10 +19,8 @@ QReadWriteLock ImageProvider::_rwLock; QPixmap* ImageProvider::_securityImage = nullptr; void ImageProvider::setSecurityImage(QPixmap* pixmap) { - // we are responsible for the pointer so no need to copy - // but we do need to delete the old one. - QWriteLocker lock(&_rwLock); // no need to delete old one, that is managed by the wallet + QWriteLocker lock(&_rwLock); _securityImage = pixmap; }