diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-11-03 05:39:12 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-11-03 05:39:12 +0000 |
commit | 43edaa8432d2b11d659e8c1b52c1d94c68c2e9c3 (patch) | |
tree | 538f9571c542e3281eae436f822f87a694ed4d92 /clang/lib/Analysis/CFRefCount.cpp | |
parent | 03d1bca60a493eb7dbfca3186f408be93512cc4e (diff) | |
download | bcm5719-llvm-43edaa8432d2b11d659e8c1b52c1d94c68c2e9c3.tar.gz bcm5719-llvm-43edaa8432d2b11d659e8c1b52c1d94c68c2e9c3.zip |
retain/release checker: CGBitmapContextCreateWithData() returns an owned object.
llvm-svn: 85867
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | clang/lib/Analysis/CFRefCount.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index 120d422d374..853b5823b7b 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -1031,6 +1031,8 @@ RetainSummary* RetainSummaryManager::getSummary(FunctionDecl* FD) { // Eventually this can be improved by recognizing that the pixel // buffer passed to CVPixelBufferCreateWithBytes is released via // a callback and doing full IPA to make sure this is done correctly. + // FIXME: This function has an out parameter that returns an + // allocated object. ScratchArgs = AF.Add(ScratchArgs, 7, StopTracking); S = getPersistentSummary(RetEffect::MakeNoRet(), DoNothing, DoNothing); @@ -1044,7 +1046,8 @@ RetainSummary* RetainSummaryManager::getSummary(FunctionDecl* FD) { // passed to CGBitmapContextCreateWithData is released via // a callback and doing full IPA to make sure this is done correctly. ScratchArgs = AF.Add(ScratchArgs, 8, StopTracking); - S = getPersistentSummary(RetEffect::MakeNoRet(), DoNothing,DoNothing); + S = getPersistentSummary(RetEffect::MakeOwned(RetEffect::CF, true), + DoNothing,DoNothing); } break; |