diff options
| author | 2010-10-21 21:21:50 -0700 | |
|---|---|---|
| committer | 2010-10-21 21:21:50 -0700 | |
| commit | 477d9b2ddc9515e0df088c448ddfb6f9145edce1 (patch) | |
| tree | 247292ebbf967e7e4fe4fe9a70a1381467015204 /libs/rs/rsScriptC.cpp | |
| parent | cde1ac6006689294dedee5260519dbd3d34971ea (diff) | |
| parent | b38d534873ca514f5a5230596c838aa37eca1568 (diff) | |
Merge "Fix refcounting bugs where the sys refcount could be corrupted during async type creation."
Diffstat (limited to 'libs/rs/rsScriptC.cpp')
| -rw-r--r-- | libs/rs/rsScriptC.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp index a2910d7e75d1..165fa7155a25 100644 --- a/libs/rs/rsScriptC.cpp +++ b/libs/rs/rsScriptC.cpp @@ -35,8 +35,6 @@ using namespace android::renderscript; ScriptC::ScriptC(Context *rsc) : Script(rsc) { - mAllocFile = __FILE__; - mAllocLine = __LINE__; mBccScript = NULL; memset(&mProgram, 0, sizeof(mProgram)); } @@ -524,11 +522,11 @@ RsScript rsi_ScriptCCreate(Context * rsc) { ScriptCState *ss = &rsc->mScriptC; - ObjectBaseRef<ScriptC> s = ss->mScript.get(); + ObjectBaseRef<ScriptC> s(ss->mScript); ss->mScript.clear(); + s->incUserRef(); ss->runCompiler(rsc, s.get()); - s->incUserRef(); ss->clear(rsc); return s.get(); } |