commit | 7b1516795e6174fea6b12b3c4c3177e64e329ba6 | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Thu Jun 24 21:49:02 2010 -0700 |
committer | Alex Ray <aray@google.com> | Tue Jul 30 13:56:53 2013 -0700 |
tree | 15a2c3ccc8118b672baed7307135b48110ed0fda | |
parent | 9efaaa43595307786dbf06760823c25cb16b1925 [diff] |
Fix a bug in sp<> and wp<> which could cause memory corruptions when assigning a smart pointer to another one, we need to make sure to read all the data we need from the right-hand-side reference (the assignee) before we decRef the assigned. This bug would cause linked-list of smart-pointers to fail miserably. Change-Id: Ibb554c15fddf909f7737c632b7c80322e80ea93f