> -   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?

Reply via email to