Don't fire callbacks after we end the subscription

This commit is contained in:
Heilig Benedek 2016-02-12 13:30:11 +01:00
parent 91c96559fa
commit f36e2841bf

View file

@ -64,7 +64,7 @@ void FrameSubscriber::OnFrameDelivered(
scoped_refptr<media::VideoFrame> frame, base::TimeTicks, bool result) {
pending_frames--;
if (!result || RequestDestruct())
if (RequestDestruct() || subscriber_ == NULL || !result)
return;
v8::Locker locker(isolate_);