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
|
#endif
|
||||||
delete[] fColors;
|
delete[] fColors;
|
||||||
delete[] fGammaCorrectedColors;
|
delete[] fGammaCorrectedColors;
|
||||||
|
delete fGradient;
|
||||||
fColors = NULL;
|
fColors = NULL;
|
||||||
fGammaCorrectedColors = NULL;
|
fGammaCorrectedColors = NULL;
|
||||||
fGradient = NULL;
|
fGradient = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user