Hi,

The attached patch fixes two crashes in gdk-directfb (with Denis' patch that was posted a few days ago). In the first problem, gdk_keymap_translate_keyboard_state uses *effective_group even if the passed-in pointer is NULL. In the second, if a window is destroyed with pending updates before gdk_window_directfb_process_all_updates is called from the idle handler, gdk_window_get_toplevel will crash (as it does a simple while (window_type(obj) == child) obj = obj->parent; loop... parent is NULL for destroyed windows, so this blows up).

(Also, I noticed that the patch accidentally uses d_debug_at in one place instead of D_DEBUG_AT, but I didn't include that fix here.)

Thanks,
    - Vlad

Attachment: gdk-dfb-fixes.patch
Description: Binary data


_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to