Skip to content

Commit

Permalink
Fixes following code review.
Browse files Browse the repository at this point in the history
  • Loading branch information
aangerma committed Oct 23, 2018
1 parent f9a82d5 commit c33a247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/realsense-viewer/realsense-viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ int main(int argv, const char** argc) try
{
ctx.unload_device(p.file_name());
}
device_to_remove->syncer->remove_syncer(device_to_remove->dev_syncer);
viewer_model.syncer->remove_syncer(device_to_remove->dev_syncer);
device_models->erase(std::find_if(begin(*device_models), end(*device_models),
[&](const device_model& other) { return get_device_name(other.dev) == get_device_name(device_to_remove->dev); }));
device_to_remove = nullptr;
Expand Down

0 comments on commit c33a247

Please sign in to comment.