Changeset 21eeb653 in mainline for uspace/lib/gui/window.c


Ignore:
Timestamp:
2013-04-21T16:47:51Z (12 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3b98311
Parents:
1e3ea91
Message:

Fixed memory leak in widget toolkit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gui/window.c

    r1e3ea91 r21eeb653  
    424424
    425425        while (!list_empty(&win->events.list)) {
    426                 list_remove(list_first(&win->events.list));
     426                window_event_t *event = (window_event_t *) list_first(&win->events.list);
     427                list_remove(&event->link);
     428                free(event);
    427429        }
    428430
Note: See TracChangeset for help on using the changeset viewer.