summaryrefslogtreecommitdiff
path: root/cpp/lib/broker/LazyLoadedContent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/lib/broker/LazyLoadedContent.cpp')
-rw-r--r--cpp/lib/broker/LazyLoadedContent.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/lib/broker/LazyLoadedContent.cpp b/cpp/lib/broker/LazyLoadedContent.cpp
index c0da48efda..51aa6c590b 100644
--- a/cpp/lib/broker/LazyLoadedContent.cpp
+++ b/cpp/lib/broker/LazyLoadedContent.cpp
@@ -56,3 +56,8 @@ void LazyLoadedContent::encode(Buffer&)
{
//do nothing as all content is written as soon as it is added
}
+
+void LazyLoadedContent::destroy()
+{
+ store->destroy(msg);
+}