Skip to content

Commit

Permalink
cabana: fix potential dangling pointer Issue (#32672)
Browse files Browse the repository at this point in the history
Fix Potential Dangling Pointer Issue
  • Loading branch information
deanlee committed Jun 9, 2024
1 parent 20a44bb commit 6688d7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cabana/videowidget.cc
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ QWidget *VideoWidget::createCameraWidget() {
setMaximumTime(can->totalSeconds());
QObject::connect(slider, &QSlider::sliderReleased, [this]() { can->seekTo(slider->currentSecond()); });
QObject::connect(slider, &Slider::updateMaximumTime, this, &VideoWidget::setMaximumTime, Qt::QueuedConnection);
QObject::connect(can, &AbstractStream::eventsMerged, [this]() { slider->update(); });
QObject::connect(can, &AbstractStream::eventsMerged, this, [this]() { slider->update(); });
QObject::connect(static_cast<ReplayStream*>(can), &ReplayStream::qLogLoaded, slider, &Slider::parseQLog);
QObject::connect(cam_widget, &CameraWidget::clicked, []() { can->pause(!can->isPaused()); });
QObject::connect(cam_widget, &CameraWidget::vipcAvailableStreamsUpdated, this, &VideoWidget::vipcAvailableStreamsUpdated);
Expand Down

0 comments on commit 6688d7b

Please sign in to comment.