factory: don't use smart pointer when creating a factory

This commit is contained in:
Julian Bouzas 2019-05-23 14:09:59 -04:00
parent 92dc9d5cdf
commit 2fd0f63118

View file

@ -46,7 +46,7 @@ wp_factory_class_init (WpFactoryClass * klass)
WpFactory *
wp_factory_new (WpCore * core, const gchar * name, WpFactoryFunc func)
{
g_autoptr (WpFactory) f = NULL;
WpFactory *f = NULL;
g_return_val_if_fail (name != NULL && *name != '\0', NULL);
g_return_val_if_fail (func != NULL, NULL);