Fix read after deallocation
Fix read after deallocation

dbartolini/crown,galek/crown,mikymod/crown,mikymod/crown,dbartolini/crown,galek/crown,mikymod/crown,dbartolini/crown,dbartolini/crown,taylor001/crown,galek/crown,taylor001/crown,mikymod/crown,taylor001/crown,taylor001/crown,galek/crown