common_audio/vad: Removes head allocation failure check
Related to https://webrtc-codereview.appspot.com/51919004/ where Create() was changed. This CL removes a useless malloc failure check. BUG=441, 3347 R=kwiberg@webrtc.org Review URL: https://webrtc-codereview.appspot.com/51109004 Cr-Commit-Position: refs/heads/master@{#9312}
This commit is contained in:
parent
796e17237b
commit
c3deaa30d5
@ -25,7 +25,6 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
// Creates an instance to the VAD structure.
|
||||
// Returns a null pointer if create was unsuccessful.
|
||||
VadInst* WebRtcVad_Create();
|
||||
|
||||
// Frees the dynamic memory of a specified VAD instance.
|
||||
|
@ -24,9 +24,6 @@ static const int kMaxFrameLengthMs = 30;
|
||||
|
||||
VadInst* WebRtcVad_Create() {
|
||||
VadInstT* self = (VadInstT*)malloc(sizeof(VadInstT));
|
||||
if (self == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
WebRtcSpl_Init();
|
||||
self->init_flag = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user