diff options
author | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-24 17:22:26 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-24 17:22:26 +0000 |
commit | 3d805c350c9dc431d71e9156fbbff0b330be4717 (patch) | |
tree | 4ac7984076ae3c968589d97bc7b70e10d871c877 /skia | |
parent | 65776ee227785343f00145060f6ff0b355e133f1 (diff) | |
download | chromium_src-3d805c350c9dc431d71e9156fbbff0b330be4717.zip chromium_src-3d805c350c9dc431d71e9156fbbff0b330be4717.tar.gz chromium_src-3d805c350c9dc431d71e9156fbbff0b330be4717.tar.bz2 |
Remove use of Skia's safeUnref() in favor of SkSafeUnref(...)
safeUnref() technically has undefined behavior on a null pointer.
TEST=green bots
BUG=none
Review URL: http://codereview.chromium.org/3475007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60483 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r-- | skia/ext/vector_platform_device_linux.cc | 4 | ||||
-rw-r--r-- | skia/ext/vector_platform_device_win.cc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/skia/ext/vector_platform_device_linux.cc b/skia/ext/vector_platform_device_linux.cc index e3438e3..cbe465d 100644 --- a/skia/ext/vector_platform_device_linux.cc +++ b/skia/ext/vector_platform_device_linux.cc @@ -153,7 +153,7 @@ void VectorPlatformDevice::drawPath(const SkDraw& draw, // Removes the path effect from the temporary SkPaint object. SkPaint paint_no_effet(paint); - paint_no_effet.setPathEffect(NULL)->safeUnref(); + SkSafeUnref(paint_no_effet.setPathEffect(NULL)); // Draw the calculated path. drawPath(draw, path_modified, paint_no_effet); @@ -369,7 +369,7 @@ void VectorPlatformDevice::drawRect(const SkDraw& draw, // Removes the path effect from the temporary SkPaint object. SkPaint paint_no_effet(paint); - paint_no_effet.setPathEffect(NULL)->safeUnref(); + SkSafeUnref(paint_no_effet.setPathEffect(NULL)); // Draw the calculated path. drawPath(draw, path_modified, paint_no_effet); diff --git a/skia/ext/vector_platform_device_win.cc b/skia/ext/vector_platform_device_win.cc index ce096af..49dbc13 100644 --- a/skia/ext/vector_platform_device_win.cc +++ b/skia/ext/vector_platform_device_win.cc @@ -140,7 +140,7 @@ void VectorPlatformDevice::drawRect(const SkDraw& draw, // Removes the path effect from the temporary SkPaint object. SkPaint paint_no_effet(paint); - paint_no_effet.setPathEffect(NULL)->safeUnref(); + SkSafeUnref(paint_no_effet.setPathEffect(NULL)); // Draw the calculated path. drawPath(draw, path_modified, paint_no_effet); @@ -170,7 +170,7 @@ void VectorPlatformDevice::drawPath(const SkDraw& draw, // Removes the path effect from the temporary SkPaint object. SkPaint paint_no_effet(paint); - paint_no_effet.setPathEffect(NULL)->safeUnref(); + SkSafeUnref(paint_no_effet.setPathEffect(NULL)); // Draw the calculated path. drawPath(draw, path_modified, paint_no_effet); |