内存泄漏问题
This commit is contained in:
parent
749eb5c2ee
commit
8fbc54c2af
|
|
@ -65,16 +65,8 @@ func SetDeviceCurrentFrameV2(frame gocv.Mat, device_id int) error {
|
|||
//设置当前帧
|
||||
switch device_id {
|
||||
case 1:
|
||||
err := Device1CurrentFrame.Close()
|
||||
if err != nil {
|
||||
log.Println("设备1当前帧关闭失败")
|
||||
}
|
||||
Device1CurrentFrame = frame
|
||||
case 50:
|
||||
err := Device50CurrentFrame.Close()
|
||||
if err != nil {
|
||||
log.Printf("设备50当前帧关闭失败\n")
|
||||
}
|
||||
Device50CurrentFrame = frame
|
||||
}
|
||||
frame_count, ok := DeviceFrameCount.Load(device_id)
|
||||
|
|
|
|||
Loading…
Reference in New Issue