From afe190a095154ceed92e911aefaccbee43eebc8a Mon Sep 17 00:00:00 2001 From: Jordan Cheney Date: Tue, 14 Apr 2015 13:59:44 -0400 Subject: [PATCH] Changed the behavior of Factory::parameters() to avoid a segfault --- openbr/openbr_plugin.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openbr/openbr_plugin.h b/openbr/openbr_plugin.h index 5b22901..7aadf8d 100644 --- a/openbr/openbr_plugin.h +++ b/openbr/openbr_plugin.h @@ -946,8 +946,7 @@ struct Factory static QString parameters(const QString &name) { if (!registry) return QString(); - QScopedPointer object(registry->value(name)->_make()); - object->init(name); + T *object = make("." + name); return object->parameters().join(", "); } -- libgit2 0.21.4