mirror of
https://github.com/horgh/videostreamer.git
synced 2025-09-26 20:41:31 +08:00
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:
@@ -301,6 +301,7 @@ func destroyInput(input *Input) {
|
|||||||
|
|
||||||
if input.vsInput != nil {
|
if input.vsInput != nil {
|
||||||
C.vs_destroy_input(input.vsInput)
|
C.vs_destroy_input(input.vsInput)
|
||||||
|
input.vsInput = nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user