diff --git a/openbr/openbr_plugin.h b/openbr/openbr_plugin.h index 7aadf8d..0abe6bc 100644 --- a/openbr/openbr_plugin.h +++ b/openbr/openbr_plugin.h @@ -946,7 +946,7 @@ struct Factory static QString parameters(const QString &name) { if (!registry) return QString(); - T *object = make("." + name); + QScopedPointer object(make("." + name)); return object->parameters().join(", "); }