equal
deleted
inserted
replaced
195 #if !defined (QT_NO_LIBRARY) && !defined(QT_NO_SETTINGS) |
195 #if !defined (QT_NO_LIBRARY) && !defined(QT_NO_SETTINGS) |
196 if (!testFormat.isEmpty()) { |
196 if (!testFormat.isEmpty()) { |
197 for (int i = 0; i < keys.size(); ++i) { |
197 for (int i = 0; i < keys.size(); ++i) { |
198 QImageIOPlugin *plugin = qobject_cast<QImageIOPlugin *>(l->instance(keys.at(i))); |
198 QImageIOPlugin *plugin = qobject_cast<QImageIOPlugin *>(l->instance(keys.at(i))); |
199 if (plugin && (plugin->capabilities(device, testFormat) & QImageIOPlugin::CanWrite)) { |
199 if (plugin && (plugin->capabilities(device, testFormat) & QImageIOPlugin::CanWrite)) { |
|
200 delete handler; |
200 handler = plugin->create(device, testFormat); |
201 handler = plugin->create(device, testFormat); |
201 break; |
202 break; |
202 } |
203 } |
203 } |
204 } |
204 } |
205 } |