Commit a8664070 authored by Simon Morlat's avatar Simon Morlat

fix crash

parent 012bff54
......@@ -172,6 +172,7 @@ bool AudioRecordImpl::init(Library *lib){
delete impl;
return false;
}
sImpl=impl;
if (impl->mApiVersion>=19){
AudioRecord *test=new AudioRecord();
//dumpMemory(test->getRealThis(),AudioRecordImpl::sObjSize);
......@@ -184,7 +185,6 @@ bool AudioRecordImpl::init(Library *lib){
}
sp<AudioRecord> st(test);
}
sImpl=impl;
}
return true;
}
......
......@@ -249,6 +249,7 @@ namespace fake_android{
fail=true;
}
if (!fail){
sImpl=impl;
if (impl->mSdkVersion>=19){
impl->mUseRefCount=true;
......@@ -264,7 +265,6 @@ namespace fake_android{
}
sp<AudioTrack> st(test);
}
sImpl=impl;
return true;
}else{
delete impl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment