Skip to content

Commit c009005

Browse files
YuriUfimtsevusiems
authored andcommitted
Add type copying when creating a getter to correct memory deallocation
1 parent f453d06 commit c009005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator/abstractmetalang.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ const AbstractMetaFunction *AbstractMetaField::getter() const
13281328
m_getter = createXetter(this,
13291329
name(),
13301330
AbstractMetaAttributes::GetterFunction);
1331-
m_getter->setType(type());
1331+
m_getter->setType(type()->copy());
13321332
}
13331333

13341334
return m_getter;

0 commit comments

Comments
 (0)