diff options
author | Peter Wu <peter@lekensteyn.nl> | 2016-03-28 19:43:08 +0200 |
---|---|---|
committer | Albert Astals Cid <albert.astals@canonical.com> | 2016-04-22 13:46:15 +0000 |
commit | 1b9d082bb88e561400d2614c0507f53da478d975 (patch) | |
tree | 5f9109059d233fcb5904e55d1a0ba4000c3ba1df /src/dbus/qdbusargument_p.h | |
parent | a9e7bf9ffd1012979db7fb07e5a2c91b00dc700e (diff) |
dbus: make QDBusArgumentPrivate destructor virtual
Make the destructor of QDBusArgumentPrivate virtual as it may store
other types (QDBusDemarshaller). Suggested by Thiago.
Fixes a "new-delete-type-mismatch" error reported by AddressSanitizer.
Task-number: QTBUG-52176
Change-Id: I9ac19050840530ca9cae893b10093185d31e0448
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/dbus/qdbusargument_p.h')
-rw-r--r-- | src/dbus/qdbusargument_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus/qdbusargument_p.h b/src/dbus/qdbusargument_p.h index 28a3380fab..377cdf395b 100644 --- a/src/dbus/qdbusargument_p.h +++ b/src/dbus/qdbusargument_p.h @@ -66,7 +66,7 @@ public: inline QDBusArgumentPrivate(int flags = 0) : message(0), ref(1), capabilities(flags) { } - ~QDBusArgumentPrivate(); + virtual ~QDBusArgumentPrivate(); static bool checkRead(QDBusArgumentPrivate *d); static bool checkReadAndDetach(QDBusArgumentPrivate *&d); |