JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
use _icccm_ in the function name to stay current
[spectrwm.git] / spectrwm.c
index ae3297d..6fd39be 100644 (file)
@@ -8,6 +8,7 @@
  * Copyright (c) 2011-2012 Reginald Kennedy <rk@rejii.com>
  * Copyright (c) 2011-2012 Lawrence Teo <lteo@lteo.net>
  * Copyright (c) 2011-2012 Tiago Cunha <tcunha@gmx.com>
+ * Copyright (c) 2012 David Hill <dhill@mindcry.org>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -828,9 +829,8 @@ teardown_ewmh(void)
                        xcb_destroy_window(conn, id);
                        xcb_delete_property(conn, screens[i].root, sup_check);
                        xcb_delete_property(conn, screens[i].root, sup_list);
-
-                       free(pr);
                }
+               free(pr);
        }
 }
 
@@ -6624,7 +6624,7 @@ manage_window(xcb_window_t id)
                win->ch.class_name = tmpch.class_name;
                win->ch.instance_name = tmpch.instance_name;
 
-               xcb_get_wm_class_reply_wipe(&tmpch);
+               xcb_icccm_get_wm_class_reply_wipe(&tmpch);
 
                DNPRINTF(SWM_D_CLASS, "manage_window: class: %s, name: %s\n",
                    win->ch.class_name, win->ch.instance_name);