I wasn't familiar with GLib used in the project and just found that resources were not properly initialized/freed. v3 fixes that.

--
    Mykola Ivanets