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