[haiku-commits] r42439 - haiku/trunk/src/apps/debugger/user_interface/gui/team_window

  • From: anevilyak@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 16 Jul 2011 19:44:32 +0200 (CEST)

Author: anevilyak
Date: 2011-07-16 19:44:31 +0200 (Sat, 16 Jul 2011)
New Revision: 42439
Changeset: https://dev.haiku-os.org/changeset/42439

Modified:
   haiku/trunk/src/apps/debugger/user_interface/gui/team_window/TeamWindow.cpp
Log:
Need to acquire a reference here as well.



Modified: 
haiku/trunk/src/apps/debugger/user_interface/gui/team_window/TeamWindow.cpp
===================================================================
--- haiku/trunk/src/apps/debugger/user_interface/gui/team_window/TeamWindow.cpp 
2011-07-16 13:59:06 UTC (rev 42438)
+++ haiku/trunk/src/apps/debugger/user_interface/gui/team_window/TeamWindow.cpp 
2011-07-16 17:44:31 UTC (rev 42439)
@@ -795,11 +795,14 @@
        // look if our current stack trace has a frame matching the selected
        // function. If so, set it to match.
        StackFrame* matchingFrame = NULL;
+       BReference<StackFrame> 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;
                        }
                }


Other related posts:

  • » [haiku-commits] r42439 - haiku/trunk/src/apps/debugger/user_interface/gui/team_window - anevilyak