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:
@@ -223,6 +223,7 @@ Style::SetGradient(const ::Gradient* gradient)
|
||||
#endif
|
||||
delete[] fColors;
|
||||
delete[] fGammaCorrectedColors;
|
||||
delete fGradient;
|
||||
fColors = NULL;
|
||||
fGammaCorrectedColors = NULL;
|
||||
fGradient = NULL;
|
||||
|
||||
Reference in New Issue
Block a user