1
0
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:
TheSpiritXIII 2015-06-17 08:56:40 -04:00
parent 80ea94bcd3
commit 98eccd4d73

View File

@ -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