diff options
| author | Yang Ni <yangni@google.com> | 2016-03-08 14:11:22 -0800 |
|---|---|---|
| committer | Yang Ni <yangni@google.com> | 2016-03-09 14:43:32 -0800 |
| commit | b1f9eb6b37dace844ab927421c2dbfdff954e72d (patch) | |
| tree | 8a4ee799f0a26f304c28fc609bc1e1ba0bbfcba9 /cpu_ref/rsCpuScript.cpp | |
| parent | a53bf64187bcf01ed1c62eacd52f6c6f41b5864b (diff) | |
Reset usrRefCount for rsObjects created by SSRS
Bug: 25570907
After calling runtime API to create an rsObject, decrement its
user ref count to 0, so that they don't get leaked after the script
finishes.
To avoid deleting them too early, increment the sys ref count first.
The increment will be matched with a rsClearObj() call inserted by
slang.
Change-Id: Iaa7312447efdd7d79f43be0bee44324b663de8d5
(cherry picked from commit 8133c6617ea975c0c08f28b6d1705dd27a92f35f)
Diffstat (limited to 'cpu_ref/rsCpuScript.cpp')
0 files changed, 0 insertions, 0 deletions
