[telepathy-qt4/master] shared-ptr: Make SharedData destructor virtual.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Tue Apr 7 05:34:44 PDT 2009


---
 TelepathyQt4/shared-ptr.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/TelepathyQt4/shared-ptr.h b/TelepathyQt4/shared-ptr.h
index 8dc48bc..034d7d2 100644
--- a/TelepathyQt4/shared-ptr.h
+++ b/TelepathyQt4/shared-ptr.h
@@ -53,7 +53,7 @@ class SharedData
 
 public:
     inline SharedData() : strongref(0), wd(0) { }
-    inline ~SharedData() { if (wd) { wd->d = 0; } }
+    inline virtual ~SharedData() { if (wd) { wd->d = 0; } }
 
     inline void ref() { strongref.ref(); }
     inline bool deref() { return strongref.deref(); }
-- 
1.5.6.5




More information about the telepathy-commits mailing list