From 582f180602afacddbbb6157ddeb68ecdb485183d Mon Sep 17 00:00:00 2001 From: Andrei Tumbar Date: Mon, 11 Apr 2022 21:57:49 -0400 Subject: [PATCH] Avoid assert on BufferManager destruction Co-authored-by: Andrei Tumbar --- Svc/BufferManager/BufferManagerComponentImpl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Svc/BufferManager/BufferManagerComponentImpl.cpp b/Svc/BufferManager/BufferManagerComponentImpl.cpp index 1c3faec65d..a1904fbe3c 100644 --- a/Svc/BufferManager/BufferManagerComponentImpl.cpp +++ b/Svc/BufferManager/BufferManagerComponentImpl.cpp @@ -53,7 +53,9 @@ namespace Svc { BufferManagerComponentImpl :: ~BufferManagerComponentImpl() { - this->cleanup(); + if (m_setup) { + this->cleanup(); + } } void BufferManagerComponentImpl ::