Fix incorrect use of ObjectDeleter.

This commit is contained in:
Rene Gollent 2013-05-12 14:47:12 -04:00
parent c895d331c9
commit 7a361a7a19

View File

@ -431,7 +431,7 @@ TeamDebugInfo::LoadImageDebugInfo(const ImageInfo& imageInfo,
imageInfo);
if (imageDebugInfo == NULL)
return B_NO_MEMORY;
ObjectDeleter<ImageDebugInfo> imageDebugInfoDeleter(imageDebugInfo);
BReference<ImageDebugInfo> imageDebugInfoReference(imageDebugInfo, true);
for (int32 i = 0; SpecificTeamDebugInfo* specificTeamInfo
= fSpecificInfos.ItemAt(i); i++) {
@ -452,7 +452,7 @@ TeamDebugInfo::LoadImageDebugInfo(const ImageInfo& imageInfo,
if (error != B_OK)
return error;
_imageDebugInfo = imageDebugInfoDeleter.Detach();
_imageDebugInfo = imageDebugInfoReference.Detach();
return B_OK;
}