if(file) XFree(file);
if(addr) XFree(addr);
}
-// /* cleanup any invalid windows */
-// TWindow* wins = Windows;
-// Windows = NULL;
-// while (wins) {
-// TWindow* curr = wins;
-// wins = curr->next;
-// if (!wins->path) {
-// free(curr);
-// } else {
-// curr->next = Windows;
-// Windows = curr;
-// }
-// }
+ /* cleanup any invalid windows */
+ TWindow* wins = Windows;
+ Windows = NULL;
+ while (wins && wins->next) {
+ TWindow* curr = wins;
+ wins = curr->next;
+ if (!wins->path) {
+ free(curr);
+ } else {
+ curr->next = Windows;
+ Windows = curr;
+ }
+ }
}
void find_windows(XConf* x) {