Skip to content

Draft: sdl2: Remove nonfunctional custom ref functions

Hydral Nathan Jordan requested to merge hydrasho/vala:sdl_countref_bug into main

#1463 #1466

The functions called by ref_function and unref_function like SDL_surface_up() are never generated in C which causes link errors and vala can't suggest how to solve it (using unowned).

What we can do:

  • make ref and unref attributes generate functions and call them
  • delete the code to remove bugs
Edited by Hydral Nathan Jordan

Merge request reports