From 2f47fe6c8a070f3e57db70131d186158a0713246 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sat, 16 Jul 2011 17:44:31 +0000 Subject: [PATCH] Need to acquire a reference here as well. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42439 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../debugger/user_interface/gui/team_window/TeamWindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/apps/debugger/user_interface/gui/team_window/TeamWindow.cpp b/src/apps/debugger/user_interface/gui/team_window/TeamWindow.cpp index d50e01e70f..4487797336 100644 --- a/src/apps/debugger/user_interface/gui/team_window/TeamWindow.cpp +++ b/src/apps/debugger/user_interface/gui/team_window/TeamWindow.cpp @@ -795,11 +795,14 @@ TeamWindow::_SetActiveFunction(FunctionInstance* functionInstance) // look if our current stack trace has a frame matching the selected // function. If so, set it to match. StackFrame* matchingFrame = NULL; + BReference frameRef; + if (fActiveStackTrace != NULL) { for (int32 i = 0; i < fActiveStackTrace->CountFrames(); i++) { StackFrame* frame = fActiveStackTrace->FrameAt(i); if (frame->Function() == fActiveFunction) { matchingFrame = frame; + frameRef.SetTo(frame); break; } }