[VDS] Try to fix memory leak by properly parenting widgets (#6498)

* [VDS] Try to fix memory leak by properly parenting widgets

* format
This commit is contained in:
RickyRister 2026-01-06 02:42:35 -08:00 committed by GitHub
parent b86853b65c
commit 0a2fdb05ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View file

@ -47,7 +47,7 @@ CardInfoPictureWidget::CardInfoPictureWidget(QWidget *parent, const bool _hoverT
originalPos = this->pos();
// Create the animation
animation = new QPropertyAnimation(this, "pos");
animation = new QPropertyAnimation(this, "pos", this);
animation->setDuration(200); // 200ms animation duration
animation->setEasingCurve(QEasingCurve::OutQuad);