mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
Bug 619827 - throw from AudioTrack constructor kills fennec, r=kinetic,mwu a=blocking-fennec
This commit is contained in:
parent
064a48a59c
commit
45e5655e9c
@ -220,6 +220,15 @@ sa_stream_open(sa_stream_t *s) {
|
||||
s->bufferSize,
|
||||
MODE_STREAM);
|
||||
|
||||
jthrowable exception = (*jenv)->ExceptionOccurred(jenv);
|
||||
if (exception) {
|
||||
(*jenv)->ExceptionDescribe(jenv);
|
||||
(*jenv)->ExceptionClear(jenv);
|
||||
(*jenv)->DeleteGlobalRef(jenv, s->at_class);
|
||||
(*jenv)->PopLocalFrame(jenv, NULL);
|
||||
return SA_ERROR_INVALID;
|
||||
}
|
||||
|
||||
if (!obj) {
|
||||
(*jenv)->DeleteGlobalRef(jenv, s->at_class);
|
||||
(*jenv)->PopLocalFrame(jenv, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user