1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -05:00

clear reference on release

This commit is contained in:
Darien Raymond 2017-04-16 13:12:58 +02:00
parent 2f565bfd5e
commit 5c2cabb44e
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -70,7 +70,8 @@ func (mb MultiBuffer) IsEmpty() bool {
}
func (mb MultiBuffer) Release() {
for _, b := range mb {
for i, b := range mb {
b.Release()
mb[i] = nil
}
}