Replace the DestroyDeviceInfo with a virtual destructor.
Review URL: http://webrtc-codereview.appspot.com/212005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@731 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -241,7 +241,7 @@ scoped_refptr<webrtc::VideoCaptureModule> Conductor::OpenVideoCaptureDevice() {
|
||||
if (video_device.get())
|
||||
break;
|
||||
}
|
||||
webrtc::VideoCaptureFactory::DestroyDeviceInfo(device_info);
|
||||
delete device_info;
|
||||
return video_device;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user