style context: Don't leak a widget path

Found by valgrind.
This commit is contained in:
Matthias Clasen 2016-11-17 20:22:42 -05:00
parent efa1c6cbd5
commit 39e3b3a483

View File

@ -1389,6 +1389,8 @@ _gtk_style_context_peek_style_property (GtkStyleContext *context,
gtk_widget_path_iter_get_state (path, -1),
pspec, &pcache->value))
{
gtk_widget_path_unref (path);
return &pcache->value;
}
}