aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp b/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
index de0f2eb4f..0b6c87ffc 100644
--- a/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
+++ b/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
@@ -144,6 +144,10 @@ public:
{
m_scopeStack.push(NamespaceModelItem(new _FileModelItem(m_model)));
}
+ ~BuilderPrivate()
+ {
+ delete m_model;
+ }
// Determine scope from top item. Note that the scope list does not necessarily
// match the scope stack in case of forward-declared inner classes whose definition