commit | a883ce325281796dc7cc8fcf973a7ccd47a9a17e | [log] [tgz] |
---|---|---|
author | Stephen Hines <srhines@google.com> | Thu Aug 11 18:52:48 2011 -0700 |
committer | Stephen Hines <srhines@google.com> | Thu Aug 11 22:48:24 2011 -0700 |
tree | 626e46e74eb1ab4c6ffb8238e1445f4d218b9f01 | |
parent | 2d35eddd17eaa8bf5a0202dc60ead14dd16eb2d6 [diff] |
Fix refcount issue with locals declared in middle of compound statements. Declaring a local variable in the middle of a compound statement is perfectly legal in Renderscript (C99). Unfortunately, the refcount implementation was mistakenly inserting destructors prior to the declaration, which is incorrect. This change only allows destructors to be placed lexically after the local variable has been declared. Change-Id: Ieb8d5e2eac448719aa9266f7ba94437dad73ec0b