mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Notifications Edge: Fix Valgrind invalid read
This commit is contained in:
parent
80ea94bcd3
commit
98eccd4d73
|
@ -77,7 +77,7 @@ void NotificationScrollArea::updateTracking()
|
|||
{
|
||||
if (--referencesAbove == 0)
|
||||
{
|
||||
delete topEdge;
|
||||
topEdge->deleteLater();
|
||||
topEdge = nullptr;
|
||||
}
|
||||
else
|
||||
|
@ -89,7 +89,7 @@ void NotificationScrollArea::updateTracking()
|
|||
{
|
||||
if (--referencesBelow == 0)
|
||||
{
|
||||
delete bottomEdge;
|
||||
bottomEdge->deleteLater();
|
||||
bottomEdge = nullptr;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user