Commit afe190a095154ceed92e911aefaccbee43eebc8a
1 parent
b8caad90
Changed the behavior of Factory::parameters() to avoid a segfault
Showing
1 changed file
with
1 additions
and
2 deletions
openbr/openbr_plugin.h
| ... | ... | @@ -946,8 +946,7 @@ struct Factory |
| 946 | 946 | static QString parameters(const QString &name) |
| 947 | 947 | { |
| 948 | 948 | if (!registry) return QString(); |
| 949 | - QScopedPointer<T> object(registry->value(name)->_make()); | |
| 950 | - object->init(name); | |
| 949 | + T *object = make("." + name); | |
| 951 | 950 | return object->parameters().join(", "); |
| 952 | 951 | } |
| 953 | 952 | ... | ... |