summaryrefslogtreecommitdiffstats
path: root/src/multimedia/qmediaserviceproviderplugin.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-01-25 13:39:28 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-25 22:48:56 +0100
commita45d35c07f9eed27fc286ab5fbc00789d45259b5 (patch)
tree46cd28b8d77279055e7eecbd11777e946f5356f1 /src/multimedia/qmediaserviceproviderplugin.h
parent35393a6469a5d886c415e947be788b206c7ea76d (diff)
Add virtual destructors to two classes with other virtuals
Classes with virtuals are used polymorphically (why have virtuals otherwise?), so they need virtual destructors to be deleted properly. Unless they are never deleted using objects of those two classes -- but why have the interface in the first place if that's the case? This is binary incompatible change. It was agreed upon in the mailing list. Change-Id: I697e4bd53251452a0e6b0c09edd08c4835f90cbd Discussed-on: http://lists.qt-project.org/pipermail/development/2012-December/008908.html Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/multimedia/qmediaserviceproviderplugin.h')
-rw-r--r--src/multimedia/qmediaserviceproviderplugin.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/multimedia/qmediaserviceproviderplugin.h b/src/multimedia/qmediaserviceproviderplugin.h
index 870ee5966..9a7ff1d1e 100644
--- a/src/multimedia/qmediaserviceproviderplugin.h
+++ b/src/multimedia/qmediaserviceproviderplugin.h
@@ -112,6 +112,7 @@ struct Q_MULTIMEDIA_EXPORT QMediaServiceProviderFactoryInterface
{
virtual QMediaService* create(QString const& key) = 0;
virtual void release(QMediaService *service) = 0;
+ virtual ~QMediaServiceProviderFactoryInterface();
};
#define QMediaServiceProviderFactoryInterface_iid \