diff --git a/plugins/VOIP/gui/VOIPChatWidgetHolder.cpp b/plugins/VOIP/gui/VOIPChatWidgetHolder.cpp index 436eb161c..5b5355f63 100644 --- a/plugins/VOIP/gui/VOIPChatWidgetHolder.cpp +++ b/plugins/VOIP/gui/VOIPChatWidgetHolder.cpp @@ -214,12 +214,7 @@ void VOIPChatWidgetHolder::toggleVideoCapture() } else { - if(inputVideoDevice) - { - delete inputVideoDevice ; - inputVideoDevice = NULL ; - } - + inputVideoDevice->stop() ; videoCaptureToggleButton->setToolTip(tr("Activate camera")); } }