Fix incorrect use of ObjectDeleter.
This commit is contained in:
parent
c895d331c9
commit
7a361a7a19
@ -431,7 +431,7 @@ TeamDebugInfo::LoadImageDebugInfo(const ImageInfo& imageInfo,
|
|||||||
imageInfo);
|
imageInfo);
|
||||||
if (imageDebugInfo == NULL)
|
if (imageDebugInfo == NULL)
|
||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
ObjectDeleter<ImageDebugInfo> imageDebugInfoDeleter(imageDebugInfo);
|
BReference<ImageDebugInfo> imageDebugInfoReference(imageDebugInfo, true);
|
||||||
|
|
||||||
for (int32 i = 0; SpecificTeamDebugInfo* specificTeamInfo
|
for (int32 i = 0; SpecificTeamDebugInfo* specificTeamInfo
|
||||||
= fSpecificInfos.ItemAt(i); i++) {
|
= fSpecificInfos.ItemAt(i); i++) {
|
||||||
@ -452,7 +452,7 @@ TeamDebugInfo::LoadImageDebugInfo(const ImageInfo& imageInfo,
|
|||||||
if (error != B_OK)
|
if (error != B_OK)
|
||||||
return error;
|
return error;
|
||||||
|
|
||||||
_imageDebugInfo = imageDebugInfoDeleter.Detach();
|
_imageDebugInfo = imageDebugInfoReference.Detach();
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user