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

Issue 2354963002: Fix a memory leak reported by clang static analyzer. (Closed)

Created:
4 years, 3 months ago by sdefresne
Modified:
4 years, 3 months ago
Reviewers:
bsalomon
CC:
reviews_skia.org, stkhapugin, noyau (Ping after 24h)
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Fix a memory leak reported by clang static analyzer. The CFStringCreateWithCString method respect the "Create Rule" [1] regarding the ownership of the returned reference. This means that the object needs to be deallocated explicitly by calling CFRelease. [1]: https://developer.apple.com/library/content/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html#//apple_ref/doc/uid/20001148-103029 BUG=648210 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2354963002 Committed: https://skia.googlesource.com/skia/+/388127f1927ec6ba699a925969fd38a86cf56b3a

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M src/ports/SkOSFile_stdio.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (9 generated)
sdefresne
Please take a look. Note that this CL was made against a checkout of skia ...
4 years, 3 months ago (2016-09-20 15:08:15 UTC) #5
bsalomon
lgtm
4 years, 3 months ago (2016-09-20 15:12:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2354963002/1
4 years, 3 months ago (2016-09-20 15:52:00 UTC) #11
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 15:53:16 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/388127f1927ec6ba699a925969fd38a86cf56b3a

Powered by Google App Engine
This is Rietveld 408576698