[telepathy-qt4/master] shared-ptr: Fixed memory leak.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Mon Apr 6 10:03:34 PDT 2009
---
TelepathyQt4/shared-ptr.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/TelepathyQt4/shared-ptr.h b/TelepathyQt4/shared-ptr.h
index c4a2d1e..7d2518c 100644
--- a/TelepathyQt4/shared-ptr.h
+++ b/TelepathyQt4/shared-ptr.h
@@ -171,8 +171,8 @@ public:
if (wd && !wd->weakref.deref()) {
if (wd->d) {
wd->d->wd = 0;
- delete wd;
}
+ delete wd;
}
}
@@ -189,8 +189,8 @@ public:
if (wd && !wd->weakref.deref()) {
if (wd->d) {
wd->d->wd = 0;
- delete wd;
}
+ delete wd;
}
wd = o.wd;
}
@@ -208,8 +208,8 @@ public:
if (wd && !wd->weakref.deref()) {
if (wd->d) {
wd->d->wd = 0;
- delete wd;
}
+ delete wd;
}
wd = o.d->wd;
}
--
1.5.6.5
More information about the telepathy-commits
mailing list