just thinking you could be clearing the data using either of those if you're clearing the incorrect size, are you able to remove those from the code without too much trouble and see if you still get the crash