On Thu, 19 Oct 2017, Kamil Cholewiński <harry6...@gmail.com> wrote: >> - Arg a = {.v = text }; >> + char *trimed = g_strstrip(g_strdup(text)); >> + Arg a = {.v = trimed }; > > Doesn't this leak memory via strdup on every paste? Or does Gobject do > some automagic ref counting or whatnot?
(Ignore, didn't see the other reply, my email client sometimes fails to group threads.)