andlabs / ui

Platform-native GUI library for Go.
Other
8.33k stars 652 forks source link

expose C.uiUninit() function #417

Open rchicoli opened 2 years ago

rchicoli commented 2 years ago

I was unable to close the ui properly and reopen it again. So I am wondering if someone else would be facing this problem. After looking in the libui library, I realize the I had to call the C.uiUninit() when I am done. For example:

In order to fix my problem I had to extend the libui library and expose the Uninit function. Afterwards all allocated objects were closed properly and I was able to reopen the ui without the need of restarting my application

Thank you very much