Changes in uspace/srv/hid/compositor/compositor.c [737ebf3:790f3a3] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/compositor/compositor.c
r737ebf3 r790f3a3 224 224 225 225 link_initialize(&win->link); 226 /* One initial reference will be for being in the window list */227 226 refcount_init(&win->ref_cnt); 228 227 prodcons_initialize(&win->queue); … … 242 241 static void window_destroy(window_t *win) 243 242 { 244 if (win == NULL) 245 return; 246 247 if (!refcount_down(&win->ref_cnt)) 243 if (!win || !refcount_down(&win->ref_cnt)) 248 244 return; 249 245 … … 895 891 0, 0, width, height, win->transform, &x, &y, &width, &height); 896 892 } 897 898 /* Down refcount for removing from the window list */899 window_destroy(win);900 893 901 894 comp_damage(x, y, width, height);
Note:
See TracChangeset
for help on using the changeset viewer.