From 18d1e4ac4d3aa7a64728eee9001f6e607a9448c5 Mon Sep 17 00:00:00 2001 From: Chris Ye Date: Wed, 15 Aug 2018 22:08:22 +0800 Subject: [PATCH] free impl_ in AbstractMetaObjectBase destructor The constructor allocates field impl_ of class_loader::impl::AbstractMetaObjectBase but the destructor and whatever functions it calls do not free it. Signed-off-by: Chris Ye --- src/meta_object.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/meta_object.cpp b/src/meta_object.cpp index 9b4b0da2..002b55e2 100644 --- a/src/meta_object.cpp +++ b/src/meta_object.cpp @@ -71,6 +71,7 @@ AbstractMetaObjectBase::~AbstractMetaObjectBase() "class_loader.impl.AbstractMetaObjectBase: " "Destroying MetaObject %p (base = %s, derived = %s, library path = %s)", this, baseClassName().c_str(), className().c_str(), getAssociatedLibraryPath().c_str()); + delete impl_; } const std::string & AbstractMetaObjectBase::className() const