From aa935058605dbcdc92cc908644b921011a5fdb97 Mon Sep 17 00:00:00 2001 From: electron128 Date: Sun, 13 Dec 2015 20:49:44 +0100 Subject: [PATCH] added missing lock in RsSharedPtr destructor --- libretroshare/src/util/rssharedptr.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libretroshare/src/util/rssharedptr.h b/libretroshare/src/util/rssharedptr.h index 738ba9b0b..495c99e28 100644 --- a/libretroshare/src/util/rssharedptr.h +++ b/libretroshare/src/util/rssharedptr.h @@ -65,7 +65,9 @@ public: ~RsSharedPtr() { + lock(); DecrementAndDeleteIfLast(); + unlock(); } private: