Skip to content

Commit 177a713

Browse files
committed
We should clear the persistent cell in structs when they are destroyed
1 parent d3f38a7 commit 177a713

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

generate/templates/templates/struct_content.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ using namespace std;
6767
this->raw->{{ fields|payloadFor field.name }} = NULL;
6868
{% endif %}
6969
}
70+
{% elsif field.hasConstructor |or field.isLibgitType %}
71+
this->{{ field.name }}.Reset();
7072
{% endif %}
7173
{% endif %}
7274
{% endif %}

0 commit comments

Comments
 (0)