summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKimmo Hämäläinen <kimmo.hamalainen@nokia.com>2011-01-24 16:56:10 +0200
committerAdam Endrodi <ext-adam.endrodi@nokia.com>2011-01-25 12:07:13 +0200
commitd993f895790be5592d0b7d613e80fbe9dc20dfad (patch)
tree1543fbfeb8bfb23ac97da29e85900b0a39253695
parent22d1f0f3abb4cd6c9ce46455b9207bed5d2db94a (diff)
Don't leak damage object passed to a cache that becomes invalid.
-rw-r--r--src/mwindowpropertycache.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mwindowpropertycache.cpp b/src/mwindowpropertycache.cpp
index b6238f1..f9a56f9 100644
--- a/src/mwindowpropertycache.cpp
+++ b/src/mwindowpropertycache.cpp
@@ -113,6 +113,8 @@ MWindowPropertyCache::MWindowPropertyCache(Window w,
if (!attrs) {
//qWarning("%s: invalid window 0x%lx", __func__, window);
init_invalid();
+ if (damage_obj)
+ XDamageDestroy(QX11Info::display(), damage_obj);
return;
}
} else