Fix possible use after free in clear functions
#647
+181
−24
Merged
Loading