Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(408)

Issue 18055014: Fixes for nacl_debugger's use of picture. (Closed)

Created:
7 years, 5 months ago by scroggo
Modified:
7 years, 5 months ago
Reviewers:
borenet
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

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 Committed: https://code.google.com/p/skia/source/detail?r=9831

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -5 lines) Patch
M platform_tools/nacl/src/nacl_debugger.cpp View 3 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
scroggo
I noticed when I wrote https://code.google.com/p/skia/source/detail?r=9824 that the picture is leaked, and I introduced a ...
7 years, 5 months ago (2013-06-28 22:39:05 UTC) #1
borenet
LGTM
7 years, 5 months ago (2013-07-01 12:35:11 UTC) #2
scroggo
7 years, 5 months ago (2013-07-01 12:42:52 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 manually as r9831 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698