commit | 6c4c3a55541320a7f1d0319a65f60252dbc737eb | [log] [tgz] |
---|---|---|
author | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Jul 01 12:42:49 2013 +0000 |
committer | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Jul 01 12:42:49 2013 +0000 |
tree | b4ae94c425efc66c63477786be88e9512fed3076 | |
parent | fa13a632a0dc7eccb4e171e565e9a206064aa6e0 [diff] |
Fixes for nacl_debugger's use of picture. Now that CreateFromStream is used, check for NULL rather than looking at width and height (prevents a crash on an invalid SKP). Unref the picture when done with it. Remove the member variable for picture, since it is only accessed inside the one function. R=borenet@google.com Review URL: https://codereview.chromium.org/18055014 git-svn-id: http://skia.googlecode.com/svn/trunk@9831 2bbb7eff-a529-9590-31e7-b0007b416f81