From 1b08414f061ce217fec473b519dd1ba71c31bc3b Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Mon, 11 Sep 2017 09:34:52 -0500 Subject: [PATCH] g_object_interface_install_property(): Do interface-specific validations first https://bugzilla.gnome.org/show_bug.cgi?id=787551 --- gobject/gobject.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gobject/gobject.c b/gobject/gobject.c index 762bb9221..bb468384c 100644 --- a/gobject/gobject.c +++ b/gobject/gobject.c @@ -745,8 +745,9 @@ g_object_interface_install_property (gpointer g_iface, GTypeInterface *iface_class = g_iface; g_return_if_fail (G_TYPE_IS_INTERFACE (iface_class->g_type)); - g_return_if_fail (G_IS_PARAM_SPEC (pspec)); g_return_if_fail (!G_IS_PARAM_SPEC_OVERRIDE (pspec)); /* paranoid */ + + g_return_if_fail (G_IS_PARAM_SPEC (pspec)); g_return_if_fail (PARAM_SPEC_PARAM_ID (pspec) == 0); /* paranoid */ g_return_if_fail (pspec->flags & (G_PARAM_READABLE | G_PARAM_WRITABLE));