summaryrefslogtreecommitdiff
path: root/plugins/move/src/move.cpp
diff options
context:
space:
mode:
authorErkin Bahceci <erkinbah@gmail.com>2009-09-25 10:15:28 -0500
committerErkin Bahceci <erkinbah@gmail.com>2009-09-25 10:15:28 -0500
commit3dc8ffccba9e4ce92af209b4fd3b55cb4ef68d22 (patch)
treef6780634d889e7f41cbdd8acbcda030da73ae5d6 /plugins/move/src/move.cpp
parent5b302b77750ecf187c37d768fbfbcf79204d1833 (diff)
downloadcompiz-with-glib-mainloop-3dc8ffccba9e4ce92af209b4fd3b55cb4ef68d22.tar.gz
compiz-with-glib-mainloop-3dc8ffccba9e4ce92af209b4fd3b55cb4ef68d22.tar.bz2
move: Fix memory leak.
Diffstat (limited to 'plugins/move/src/move.cpp')
-rw-r--r--plugins/move/src/move.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/move/src/move.cpp b/plugins/move/src/move.cpp
index c6761f3..6f6d639 100644
--- a/plugins/move/src/move.cpp
+++ b/plugins/move/src/move.cpp
@@ -697,6 +697,9 @@ MoveScreen::MoveScreen (CompScreen *screen) :
MoveScreen::~MoveScreen ()
{
+ if (region)
+ XDestroyRegion (region);
+
if (moveCursor)
XFreeCursor (screen->dpy (), moveCursor);
}