diff --git a/src/plugins/imageviewer/imageviewerplugin.cpp b/src/plugins/imageviewer/imageviewerplugin.cpp index 09213fa1282..56e5d1ae8b5 100644 --- a/src/plugins/imageviewer/imageviewerplugin.cpp +++ b/src/plugins/imageviewer/imageviewerplugin.cpp @@ -52,9 +52,6 @@ bool ImageViewerPlugin::initialize(const QStringList &arguments, QString *errorM return false; m_factory = new ImageViewerFactory(this); - Aggregation::Aggregate *aggregate = new Aggregation::Aggregate; - aggregate->add(m_factory); - addAutoReleasedObject(m_factory); return true; }