Fix delete of stack allocated object causing test crashes.

Introduced in r8264.

BUG=4173
R=bjornv@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/37959004

Cr-Commit-Position: refs/heads/master@{#8266}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8266 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
stefan@webrtc.org 2015-02-06 12:59:39 +00:00
parent 4b320cf214
commit 10a9e924eb

View File

@ -805,10 +805,8 @@ SendSideBwe* CreateEstimator(BandwidthEstimatorType estimator,
return new RembSendSideBwe(kbps, observer, clock);
case kFullSendSideEstimator:
return new FullSendSideBwe(kbps, observer, clock);
case kNullEstimator: {
static NullSendSideBwe null_bwe;
return &null_bwe;
}
case kNullEstimator:
return new NullSendSideBwe();
}
assert(false);
return NULL;