* If an unknown type is encountered, return immediately. This fixes CID 1504.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38408 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0a240bcefe
commit
882d595fc0
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2007-2008, Haiku, Inc. All Rights Reserved.
|
||||
* Copyright 2007-2010, Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
@ -499,7 +499,7 @@ hda_stream_new(hda_audio_group* audioGroup, int type)
|
||||
default:
|
||||
dprintf("%s: Unknown stream type %d!\n", __func__, type);
|
||||
free(stream);
|
||||
stream = NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// find I/O and Pin widgets for this stream
|
||||
|
Loading…
x
Reference in New Issue
Block a user