Clear input once we destroy it

It's possible we could use it still and it would be invalid memory
This commit is contained in:
Will Storey
2018-01-25 20:53:48 -08:00
parent b06db9baec
commit 8a470e1b25

View File

@@ -301,6 +301,7 @@ func destroyInput(input *Input) {
if input.vsInput != nil {
C.vs_destroy_input(input.vsInput)
input.vsInput = nil
}
}