summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShawn <sabetts@juicebox>2008-10-10 13:45:43 -0700
committerShawn <sabetts@juicebox>2008-10-10 13:45:43 -0700
commit2c2989660cb285509775acdf0950aab2ae6715db (patch)
tree4bb39dd5fa126904e72f0ba5e632e88485829c24 /src
parent8370ffefe77a74b17dd14b5d8e6544f677782bc3 (diff)
downloadratpoison-2c2989660cb285509775acdf0950aab2ae6715db.zip
in get_net_wm_window_type, only call XFree on success
This fixes a crash bug that was reproduced by running dolphin (the kde file manager).
Diffstat (limited to 'src')
-rw-r--r--src/manage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manage.c b/src/manage.c
index 3328959..eb2b4ff 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -335,9 +335,9 @@ get_net_wm_window_type (rp_window *win)
&data) == Success && nitems > 0)
{
window_type = *(Atom *)data;
+ XFree (data);
PRINT_DEBUG(("hey ya %ld %ld\n", window_type, _net_wm_window_type_dialog));
}
- XFree (data);
return window_type;
}