Need to acquire a reference here as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42439 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -795,11 +795,14 @@ TeamWindow::_SetActiveFunction(FunctionInstance* functionInstance)
|
|||||||
// look if our current stack trace has a frame matching the selected
|
// look if our current stack trace has a frame matching the selected
|
||||||
// function. If so, set it to match.
|
// function. If so, set it to match.
|
||||||
StackFrame* matchingFrame = NULL;
|
StackFrame* matchingFrame = NULL;
|
||||||
|
BReference<StackFrame> frameRef;
|
||||||
|
|
||||||
if (fActiveStackTrace != NULL) {
|
if (fActiveStackTrace != NULL) {
|
||||||
for (int32 i = 0; i < fActiveStackTrace->CountFrames(); i++) {
|
for (int32 i = 0; i < fActiveStackTrace->CountFrames(); i++) {
|
||||||
StackFrame* frame = fActiveStackTrace->FrameAt(i);
|
StackFrame* frame = fActiveStackTrace->FrameAt(i);
|
||||||
if (frame->Function() == fActiveFunction) {
|
if (frame->Function() == fActiveFunction) {
|
||||||
matchingFrame = frame;
|
matchingFrame = frame;
|
||||||
|
frameRef.SetTo(frame);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user