Changeset 7896f23 in mainline for uspace/lib/ui/src/window.c


Ignore:
Timestamp:
2021-09-04T08:09:38Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ab3bfc1
Parents:
3c3657c
Message:

Do not delete window→gc when destroying window

In all cases this is handled elsewhere: memory GC - destroying it
earlier, window GC - destroyed along with window later, console GC -
shared by all windows and destroyed along with UI. Deleting window→gc
here leads to a double free and heap corruption (only with server-side
rendering).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/window.c

    r3c3657c r7896f23  
    370370        if (window->bmp != NULL)
    371371                gfx_bitmap_destroy(window->bmp);
    372         gfx_context_delete(window->gc);
    373372        if (window->dwindow != NULL)
    374373                display_window_destroy(window->dwindow);
Note: See TracChangeset for help on using the changeset viewer.