Plug a small memory leak
This commit is contained in:
@ -655,9 +655,15 @@ set_color_from_context (GtkStyle *style,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!color || !(color->alpha > 0.01))
|
if (!color)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
if (!(color->alpha > 0.01))
|
||||||
|
{
|
||||||
|
gdk_rgba_free (color);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
dest->pixel = 0;
|
dest->pixel = 0;
|
||||||
dest->red = CLAMP ((guint) (color->red * 65535), 0, 65535);
|
dest->red = CLAMP ((guint) (color->red * 65535), 0, 65535);
|
||||||
dest->green = CLAMP ((guint) (color->green * 65535), 0, 65535);
|
dest->green = CLAMP ((guint) (color->green * 65535), 0, 65535);
|
||||||
|
Reference in New Issue
Block a user