diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-09-06 09:36:01 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-09-06 14:00:41 +0200 |
| commit | 4c5c75ee5a949b42472c3491614b8a88f321471b (patch) | |
| tree | cda180b07c4e70100159eb6bf749c17f740b97e8 /sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp | |
| parent | 6bddba36e03212a4a7d522938152519dfeec96c2 (diff) | |
shiboken6: Fix some memory leaks shown by the address sanitizer
Change-Id: I31f3a2c6f3c124fa7ec566459cf255c29070e0ff
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp | 4 |
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 |
