expression: release target if evaulation fails

Related #6341
This commit is contained in:
Christian Hergert 2024-01-17 14:15:09 -08:00
parent d16d2135e6
commit 73d01d3130

View File

@ -2124,7 +2124,10 @@ gtk_expression_bind_notify (gpointer data)
return;
if (!gtk_expression_watch_evaluate (bind->watch, &value))
return;
{
g_object_unref (target);
return;
}
g_object_set_property (target, bind->pspec->name, &value);
g_object_unref (target);