Skip to content
Snippets Groups Projects
Commit a7d657a1 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

object-manager: do not accept globals without a WpProxy subclass

parent 6aba49f9
No related branches found
No related tags found
No related merge requests found
......@@ -676,6 +676,11 @@ wp_object_manager_add_global (WpObjectManager * self, WpGlobal * global)
{
WpProxyFeatures features = 0;
/* do not allow proxies that don't have a defined subclass;
bind will fail because proxy_class->pw_iface_type is NULL */
if (global->type == WP_TYPE_PROXY)
return;
if (wp_object_manager_is_interested_in_global (self, global, &features)) {
g_autoptr (WpCore) core = g_weak_ref_get (&self->core);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment