summaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authorThorsten Wißmann <edu@thorsten-wissmann.de>2012-08-30 23:04:53 +0200
committerThorsten Wißmann <edu@thorsten-wissmann.de>2012-08-30 23:04:53 +0200
commit0f35286362faabae32e80d10d6c627ebce08a73d (patch)
tree7cb8c9e3d851182ae736d0822d23cd93bf7e92a3 /src/utils.c
parent0c06a7f0fa13d34858397e5696a77b2171411bcb (diff)
Fix a memory leak in window_property_to_g_string()
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index 08229e2c..ade35f6a 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -80,7 +80,6 @@ GString* window_property_to_g_string(Display* dpy, Window window, Atom atom) {
return NULL;
}
// convert text property to a gstring
- result = g_string_new("");
if (prop.encoding == XA_STRING
|| prop.encoding == XInternAtom(dpy, "UTF8_STRING", False)) {
result = g_string_new((char*)prop.value);