libicon: Fix leak of Icon::Gradient.

This was most prominently visible in applications that show a lot of
icons like Tracker and Deskbar.
This commit is contained in:
Michael Lotz
2015-04-11 14:55:11 +02:00
parent abed891d1b
commit 9ac1c4c25e
+1
View File
@@ -223,6 +223,7 @@ Style::SetGradient(const ::Gradient* gradient)
#endif
delete[] fColors;
delete[] fGammaCorrectedColors;
delete fGradient;
fColors = NULL;
fGammaCorrectedColors = NULL;
fGradient = NULL;