From 2baa894c767eb396a901d19a1a4d54d3f5dc47b0 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Mon, 13 Oct 2014 17:20:50 +0200 Subject: [PATCH] icons screensaver: double free when in RandomSaver RandomSaver apparently calls StopSaver two times, and Icons was having a double free in that case. Fixes #10957. --- src/add-ons/screen_savers/icons/IconsSaver.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/add-ons/screen_savers/icons/IconsSaver.cpp b/src/add-ons/screen_savers/icons/IconsSaver.cpp index 1ca06944b8..796aebb9b1 100644 --- a/src/add-ons/screen_savers/icons/IconsSaver.cpp +++ b/src/add-ons/screen_savers/icons/IconsSaver.cpp @@ -119,6 +119,7 @@ void IconsSaver::StopSaver() { delete[] fIcons; + fIcons = NULL; }