Open stacksmith opened 5 years ago
Actually, iters may be allocated anywhere; only iters created by GTK internally and using gtk-text-iter-copy
need to be deallocated using gtk-text-iter-free
. It would make more sense to foreign-alloc them and manage them as any foreign object.
Unless I am missing something. There is no binding for
gtk-text-iter-free
There seems to be no provision for freeing iters, which are erroneously allocated all over the place (see related issue #64). Edit: Freeing iters requires g_slice_free see https://github.com/GNOME/gtk/blob/master/gtk/gtktextiter.c