From 9ac1c4c25e7e235c87962006fe614cda8bd8f193 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Sat, 11 Apr 2015 14:55:11 +0200 Subject: [PATCH] libicon: Fix leak of Icon::Gradient. This was most prominently visible in applications that show a lot of icons like Tracker and Deskbar. --- src/libs/icon/style/Style.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/icon/style/Style.cpp b/src/libs/icon/style/Style.cpp index 814620333b..3b621bace0 100644 --- a/src/libs/icon/style/Style.cpp +++ b/src/libs/icon/style/Style.cpp @@ -223,6 +223,7 @@ Style::SetGradient(const ::Gradient* gradient) #endif delete[] fColors; delete[] fGammaCorrectedColors; + delete fGradient; fColors = NULL; fGammaCorrectedColors = NULL; fGradient = NULL;