st: Don't leak st_describe_actor strings
Hopefully this code doesn't get hit much. And it does seem to be the only user of the function. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1319
This commit is contained in:
parent
d7c3050e2d
commit
8e05fa2728
@ -601,8 +601,11 @@ st_widget_get_theme_node (StWidget *widget)
|
||||
|
||||
if (stage == NULL)
|
||||
{
|
||||
g_autofree char *desc = st_describe_actor (CLUTTER_ACTOR (widget));
|
||||
|
||||
g_critical ("st_widget_get_theme_node called on the widget %s which is not in the stage.",
|
||||
st_describe_actor (CLUTTER_ACTOR (widget)));
|
||||
desc);
|
||||
|
||||
return g_object_new (ST_TYPE_THEME_NODE, NULL);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user