diff options
Diffstat (limited to 'tools/debugger/SkDrawCommand.cpp')
-rw-r--r-- | tools/debugger/SkDrawCommand.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/debugger/SkDrawCommand.cpp b/tools/debugger/SkDrawCommand.cpp index e342c4415e..2f5a875ac3 100644 --- a/tools/debugger/SkDrawCommand.cpp +++ b/tools/debugger/SkDrawCommand.cpp @@ -769,10 +769,10 @@ static SkBitmap* load_bitmap(const Json::Value& jsonBitmap, UrlDataManager& urlD const char* ctName = jsonBitmap[SKDEBUGCANVAS_ATTRIBUTE_COLOR].asCString(); SkColorType ct = colortype_from_name(ctName); if (ct != kIndex_8_SkColorType) { - bitmap.reset(convert_colortype(bitmap.detach(), ct)); + bitmap.reset(convert_colortype(bitmap.release(), ct)); } } - return bitmap.detach(); + return bitmap.release(); } SkDebugf("image decode failed\n"); return nullptr; |