summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Azzarone <azzaronea@gmail.com>2011-07-30 15:11:21 +0200
committerAndrea Azzarone <azzaronea@gmail.com>2011-07-30 15:11:21 +0200
commit8841d4aefe8edd332760f6354bd887a52b07ba8d (patch)
tree52aaf3f1edbed71a9eeb047e595c7c27b30389ab
parent46e7890656f14903a1c29a4e8514270d4bf24c0e (diff)
downloadworkarounds-8841d4aefe8edd332760f6354bd887a52b07ba8d.tar.gz
workarounds-8841d4aefe8edd332760f6354bd887a52b07ba8d.tar.bz2
Fixes one memory leak.
-rw-r--r--src/workarounds.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/workarounds.cpp b/src/workarounds.cpp
index 27d16fb..86b5001 100644
--- a/src/workarounds.cpp
+++ b/src/workarounds.cpp
@@ -719,6 +719,11 @@ WorkaroundsWindow::getFixedWindowType ()
resName = CompString (classHint.res_name);
XFree (classHint.res_name);
}
+
+ if (classHint.res_class)
+ {
+ XFree (classHint.res_class);
+ }
/* FIXME: Is this the best way to detect a notification type window? */
if (ws->optionGetNotificationDaemonFix ())