Fixed memory leak in VideoStreamingThread.