diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-10-18 18:58:06 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-10-18 18:58:06 +0000 |
commit | 7a17e3a34fd8854d8ce9b06f37b69b73b5d4992d (patch) | |
tree | 2da90f3c4e56f99b9b4cee01a0339f739e94976d /include/core | |
parent | 1c401d8f42dbb3d2fd8f249a2acbe4bac829ff00 (diff) |
oops, init fSize to 0 before calling resize
git-svn-id: http://skia.googlecode.com/svn/trunk@2493 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkTypes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h index 91a8b8f210..da02708aa8 100644 --- a/include/core/SkTypes.h +++ b/include/core/SkTypes.h @@ -506,7 +506,7 @@ public: */ explicit SkAutoSMalloc(size_t size) { fPtr = fStorage; - fSize = size; + fSize = 0; this->reset(size); } |