Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/compositor/compositor.c

    r737ebf3 r790f3a3  
    224224
    225225        link_initialize(&win->link);
    226         /* One initial reference will be for being in the window list */
    227226        refcount_init(&win->ref_cnt);
    228227        prodcons_initialize(&win->queue);
     
    242241static void window_destroy(window_t *win)
    243242{
    244         if (win == NULL)
    245                 return;
    246 
    247         if (!refcount_down(&win->ref_cnt))
     243        if (!win || !refcount_down(&win->ref_cnt))
    248244                return;
    249245
     
    895891                    0, 0, width, height, win->transform, &x, &y, &width, &height);
    896892        }
    897 
    898         /* Down refcount for removing from the window list */
    899         window_destroy(win);
    900893
    901894        comp_damage(x, y, width, height);
Note: See TracChangeset for help on using the changeset viewer.