You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first of all, I want to say thank you for providing MXML - we from ZynAddSubFX use it for more than a decade and have always been satisfied.
My request is concerning the cleanup of objects obtained through mxmlOptionsNew(). When I wrote our MXML4 port, I just checked the doc/mxml.html documentation of mxmlOptionsNew, and since it did not reference any cleanup function (the doxygen comment does, but this does not generate that html file), I assumed that the IO functions would cleanup that struct or some garbage collector behind the scenes. However, looking into MXML source, there is no garbage collector, and since there is an mxmlOptionsDelete() function, I assume a garbage collector is not planned.
I would like to request the following:
In doc/mxml.html, in the mxmlOptionsNew function documentation, write that obtained pointers should be passed to mxmlOptionsDelete. I suggest to also write at what point of time that can be done - I assume this can be done as soon as the corresponding IO function finished, e.g. these IO functions never reference the object internally for later use.
I also got confused because testmxml.c does not use mxmlOptionsDelete either. Do you mind adding it there?
Minor issue I found: in doc/mxml.html, searching for "BACKTICK c" (just two characters, a backtick and then a c) shows that some code snippets are not rendered?
Thanks on advance!
The text was updated successfully, but these errors were encountered:
Hmm, I generate the documentation with codedoc which should be including mxmlOptionsDelete... Yes, looking at the documentation it is there already. Also, the documentation for mxmlOptionsNew already references mxmlOptionsDelete.
However, it does look like the code example is messed up - probably a typo in the comments.
I can also add the mxmlOptionsDelete call to the test program but it isn't necessary when the program is exiting and returning all memory back to the OS.
michaelrsweet
changed the title
Reference and use mxmlOptionsDelete
Fix mxmlOptionsNew documentation
Jan 18, 2025
Indeed, I oversaw the reference to mxmlOptionsDelete in mxmlOptionsNew. That solves point 1.
I can also add the mxmlOptionsDelete call to the test program but it isn't necessary when the program is exiting and returning all memory back to the OS.
That would help. Some applications have the goal to be completely leak-free.
Hello,
first of all, I want to say thank you for providing MXML - we from ZynAddSubFX use it for more than a decade and have always been satisfied.
My request is concerning the cleanup of objects obtained through
mxmlOptionsNew()
. When I wrote our MXML4 port, I just checked thedoc/mxml.html
documentation ofmxmlOptionsNew
, and since it did not reference any cleanup function (the doxygen comment does, but this does not generate that html file), I assumed that the IO functions would cleanup that struct or some garbage collector behind the scenes. However, looking into MXML source, there is no garbage collector, and since there is anmxmlOptionsDelete()
function, I assume a garbage collector is not planned.I would like to request the following:
doc/mxml.html
, in themxmlOptionsNew
function documentation, write that obtained pointers should be passed tomxmlOptionsDelete
. I suggest to also write at what point of time that can be done - I assume this can be done as soon as the corresponding IO function finished, e.g. these IO functions never reference the object internally for later use.testmxml.c
does not usemxmlOptionsDelete
either. Do you mind adding it there?doc/mxml.html
, searching for "BACKTICK c" (just two characters, a backtick and then a c) shows that some code snippets are not rendered?Thanks on advance!
The text was updated successfully, but these errors were encountered: