diff options
author | Tim Murray <timmurray@google.com> | 2013-12-03 11:36:03 -0800 |
---|---|---|
committer | Tim Murray <timmurray@google.com> | 2013-12-12 10:49:20 -0800 |
commit | 3560907fa9b1624eefbd6db5e9c3ccc25ab23b92 (patch) | |
tree | bba012b2f33550dcbf260de7b13dc080641871e8 /cpp/Element.cpp | |
parent | 071aee6b0cffde1ce3ece5e32e34361db2105547 (diff) | |
download | rs-3560907fa9b1624eefbd6db5e9c3ccc25ab23b92.tar.gz |
Fix memory leak due to smart pointer misuse.
bug 11965932
Change-Id: I982b974b3554b0f4dc7a558107703ff605f580e6
Diffstat (limited to 'cpp/Element.cpp')
-rw-r--r-- | cpp/Element.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/Element.cpp b/cpp/Element.cpp index 97a600e9..b122926a 100644 --- a/cpp/Element.cpp +++ b/cpp/Element.cpp @@ -359,7 +359,7 @@ bool Element::isCompatible(android::RSC::sp<const Element>e) const { } Element::Builder::Builder(android::RSC::sp<RS> rs) { - mRS = rs; + mRS = rs.get(); mSkipPadding = false; } |