Skip to content
  • LRN's avatar
    Fix GtkDragSourceInfo disposal · 5e00fd25
    LRN authored
    gtk_drag_clear_source_info() immediately unrefs the info attached
    to the context (the very same info we're in the process of destroying
    in gtk_drag_source_info_free()). If that reference was the last one,
    then accessing the info object after that is a use-after-free error.
    Also, change the order a bit to first free the event, and only then
    unref the context.
    
    Fix this by copying all the fields of the info that we need, and
    then working with these copies.
    5e00fd25