forked from AuroraMiddleware/gtk
gtkcssprovider: Free shorthand border GValues in the right place
The call to gtk_border_free() within unpack_border() felt completely in the wrong place, as the border actually pertains to the GValue being unpacked. Plus, the GValue itself was also being leaked.
This commit is contained in:
parent
2c8e01dc80
commit
20433efbfa
@ -1092,6 +1092,7 @@ gtk_css_ruleset_add (GtkCssRuleset *ruleset,
|
||||
gtk_css_ruleset_add (ruleset, child, value);
|
||||
}
|
||||
g_free (parameters);
|
||||
property_value_free (value);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1187,8 +1187,6 @@ unpack_border (const GValue *value,
|
||||
g_value_init (¶meter[3].value, G_TYPE_INT);
|
||||
g_value_set_int (¶meter[3].value, border->right);
|
||||
|
||||
gtk_border_free (border);
|
||||
|
||||
*n_params = 4;
|
||||
return parameter;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user