fixed webcam memory leak (it was not really a leak)