Good. What are the next steps ?
Who is going to implement those changes and when ?

The 2 issues to solve are:
 - improve the API
 - fix the current memory leaks.

My patch fixes the memory leaks. But not the API.

One way to do is:
  - apply my patch (fixes memory leaks)
  - then change the API (which is going to be easier).