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 bdf41d7..c10c694 100644
a
|
b
|
TeamWindow::MessageReceived(BMessage* message)
|
385 | 385 | break; |
386 | 386 | |
387 | 387 | _HandleResolveMissingSourceFile(locatedPath); |
| 388 | delete fFilePanel; |
| 389 | fFilePanel = NULL; |
388 | 390 | break; |
389 | 391 | } |
390 | 392 | case MSG_LOCATE_SOURCE_IF_NEEDED: |
… |
… |
TeamWindow::MessageReceived(BMessage* message)
|
395 | 397 | case MSG_SOURCE_ENTRY_QUERY_COMPLETE: |
396 | 398 | { |
397 | 399 | BStringList* entries; |
398 | | if (message->FindPointer("entries", (void**)&entries) != B_OK) |
399 | | break; |
400 | | ObjectDeleter<BStringList> entryDeleter(entries); |
401 | | _HandleLocateSourceRequest(entries); |
| 400 | if (message->FindPointer("entries", (void**)&entries) == B_OK) { |
| 401 | ObjectDeleter<BStringList> entryDeleter(entries); |
| 402 | _HandleLocateSourceRequest(entries); |
| 403 | } |
402 | 404 | fActiveSourceWorker = -1; |
403 | 405 | break; |
404 | 406 | } |
… |
… |
TeamWindow::_RetrieveMatchingSourceWorker(void* arg)
|
1568 | 1570 | window->Unlock(); |
1569 | 1571 | |
1570 | 1572 | status_t error = window->_RetrieveMatchingSourceEntries(path, entries); |
1571 | | if (error != B_OK) |
1572 | | return error; |
1573 | 1573 | |
1574 | 1574 | entries->Sort(); |
1575 | 1575 | BMessenger messenger(window); |
1576 | 1576 | if (messenger.IsValid() && messenger.LockTarget()) { |
1577 | 1577 | if (window->fActiveSourceWorker == find_thread(NULL)) { |
1578 | 1578 | BMessage message(MSG_SOURCE_ENTRY_QUERY_COMPLETE); |
| 1579 | message.AddInt32("error", error); |
1579 | 1580 | message.AddPointer("entries", entries); |
1580 | 1581 | if (messenger.SendMessage(&message) == B_OK) |
1581 | 1582 | stringListDeleter.Detach(); |