summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <Sam@ACER-SUSE.SUSE>2008-03-05 19:30:54 +0900
committerSam Spilsbury <Sam@ACER-SUSE.SUSE>2008-03-05 19:30:54 +0900
commit0c9c6fc52351bd666b64a07fbd67c56dcd42fd3b (patch)
treeec6da00128fb699eb31248bbd3c178d397dd65c8
parent18d33ec505b37780048f0e515f9b2192e124e7f6 (diff)
downloadwiimote-0c9c6fc52351bd666b64a07fbd67c56dcd42fd3b.tar.gz
wiimote-0c9c6fc52351bd666b64a07fbd67c56dcd42fd3b.tar.bz2
* That commit commited a memory leak :o
Revert " * Another workaround" This reverts commit 4365743332212dca41b557cc397229272e961951.
-rw-r--r--wiimote.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/wiimote.c b/wiimote.c
index d87b14c..a5620e7 100644
--- a/wiimote.c
+++ b/wiimote.c
@@ -157,10 +157,9 @@ wiimoteFreeWindowTitle (CompScreen *s)
{
WIIMOTE_SCREEN(s);
- if (!as->textPixmap)
+ if (!as->textPixmap || as->textTexture != NULL)
return;
- initTexture (s, &as->textTexture);
releasePixmapFromTexture (s, &as->textTexture);
initTexture (s, &as->textTexture);
XFreePixmap (s->display->display, as->textPixmap);