bonefish+mmlr:
Don't delete the (uninitialized) debugInfo if loading failed. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36254 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -278,10 +278,8 @@ LoadImageDebugInfoJob::Do()
|
||||
if (error == B_OK) {
|
||||
error = fImage->SetImageDebugInfo(debugInfo, IMAGE_DEBUG_INFO_LOADED);
|
||||
debugInfo->ReleaseReference();
|
||||
} else {
|
||||
} else
|
||||
fImage->SetImageDebugInfo(NULL, IMAGE_DEBUG_INFO_UNAVAILABLE);
|
||||
delete debugInfo;
|
||||
}
|
||||
|
||||
return error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user