mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-03 07:56:42 -05:00
clear reference on release
This commit is contained in:
parent
2f565bfd5e
commit
5c2cabb44e
@ -70,7 +70,8 @@ func (mb MultiBuffer) IsEmpty() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (mb MultiBuffer) Release() {
|
func (mb MultiBuffer) Release() {
|
||||||
for _, b := range mb {
|
for i, b := range mb {
|
||||||
b.Release()
|
b.Release()
|
||||||
|
mb[i] = nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user