diff options
| author | Mark Rowe <mark@vector35.com> | 2025-07-15 20:14:30 -0700 |
|---|---|---|
| committer | Mark Rowe <mark@vector35.com> | 2025-07-16 15:05:25 -0700 |
| commit | 26eebf712fb54c3fa41778410547a0992702f2cf (patch) | |
| tree | 6f217cda9dae0137eee06e780ef46b9e79ff32e8 /objectivec | |
| parent | 12486a2472aef8a60c5fce5b62bc516120075c36 (diff) | |
Miscellaneous leak fixes in MachoView and ObjCProcessor
Diffstat (limited to 'objectivec')
| -rw-r--r-- | objectivec/objc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/objectivec/objc.cpp b/objectivec/objc.cpp index 727005e7..9d35d5e9 100644 --- a/objectivec/objc.cpp +++ b/objectivec/objc.cpp @@ -1352,9 +1352,9 @@ void ObjCProcessor::PostProcessObjCSections(ObjCReader* reader) // The ivar section contains entries of type `long` for for all architectures // except arm64, which uses `int` for the ivar offset. size_t ivarOffsetSize = m_data->GetDefaultArchitecture()->GetName() == "aarch64" ? 4 : ptrSize; - auto ivarSectionEntryTypeBuilder = new TypeBuilder(Type::IntegerType(ivarOffsetSize, false)); - ivarSectionEntryTypeBuilder->SetConst(true); - auto type = ivarSectionEntryTypeBuilder->Finalize(); + TypeBuilder ivarSectionEntryTypeBuilder(Type::IntegerType(ivarOffsetSize, false)); + ivarSectionEntryTypeBuilder.SetConst(true); + auto type = ivarSectionEntryTypeBuilder.Finalize(); for (view_ptr_t i = start; i < end; i += ivarOffsetSize) { m_data->DefineDataVariable(i, type); |
