内存泄漏问题

This commit is contained in:
lijun 2025-01-18 15:13:51 +08:00
parent 59ae9d7f6f
commit 87c3522374
1 changed files with 5 additions and 0 deletions

View File

@ -266,6 +266,11 @@ func getVideoFrame(device proto.DeviceInfo) {
log.Printf("设备:%d 错误: 无法设置当前帧,err:%s \n", device.ID, err3.Error()) log.Printf("设备:%d 错误: 无法设置当前帧,err:%s \n", device.ID, err3.Error())
} }
z++ z++
//关闭帧
err4 := frame.Close()
if err4 != nil {
log.Printf("设备:%d 错误: 无法关闭帧,err:%s \n", device.ID, err4.Error())
}
} }
//关闭帧 //关闭帧
err4 := frame.Close() err4 := frame.Close()