Commit d5d4952f677b68b66cfd795e2395220dc3745bfe
1 parent
afe190a0
Using a QScopedPointer
Showing
1 changed file
with
1 additions
and
1 deletions
openbr/openbr_plugin.h
| ... | ... | @@ -946,7 +946,7 @@ struct Factory |
| 946 | 946 | static QString parameters(const QString &name) |
| 947 | 947 | { |
| 948 | 948 | if (!registry) return QString(); |
| 949 | - T *object = make("." + name); | |
| 949 | + QScopedPointer<T> object(make("." + name)); | |
| 950 | 950 | return object->parameters().join(", "); |
| 951 | 951 | } |
| 952 | 952 | ... | ... |