summaryrefslogtreecommitdiff
path: root/src/aquamarine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/aquamarine.cpp')
-rw-r--r--src/aquamarine.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/aquamarine.cpp b/src/aquamarine.cpp
index 8ee8485..0ec9fd7 100644
--- a/src/aquamarine.cpp
+++ b/src/aquamarine.cpp
@@ -91,7 +91,7 @@ main (int argc, char **argv)
Atom actual;
int result, format;
unsigned long n, left;
- unsigned char * data;
+ unsigned char * data = NULL;
result = XGetWindowProperty (dpy, wm, wm_name,
0L, 2L, FALSE, utf8_string, &actual, &format,
@@ -107,6 +107,9 @@ main (int argc, char **argv)
}
}
+ if (data)
+ XFree(data);
+
if (!wmRunning)
{
XSelectInput(dpy, wm, StructureNotifyMask);