Skip to content

Commit

Permalink
ui/body.cc: fix QMovie leak (commaai#30379)
Browse files Browse the repository at this point in the history
fix QMovie leak
  • Loading branch information
deanlee authored Nov 4, 2023
1 parent f527928 commit fb3c093
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/ui/qt/body.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ BodyWindow::BodyWindow(QWidget *parent) : fuel_filter(1.0, 5., 1. / UI_FREQ), QW
face = new QLabel();
face->setAlignment(Qt::AlignCenter);
layout->addWidget(face);
awake = new QMovie("../assets/body/awake.gif");
awake = new QMovie("../assets/body/awake.gif", {}, this);
awake->setCacheMode(QMovie::CacheAll);
sleep = new QMovie("../assets/body/sleep.gif");
sleep = new QMovie("../assets/body/sleep.gif", {}, this);
sleep->setCacheMode(QMovie::CacheAll);

// record button
Expand Down

0 comments on commit fb3c093

Please sign in to comment.