Re: [dev] [surf] [patch] strip uri leading whitespace when ctrl-p

From: Kamil Cholewiński <harry666t_AT_gmail.com>
Date: Thu, 19 Oct 2017 11:12:27 +0200

On Thu, 19 Oct 2017, Kamil Cholewiński <harry666t_AT_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.)
Received on Thu Oct 19 2017 - 11:12:27 CEST

This archive was generated by hypermail 2.3.0 : Thu Oct 19 2017 - 11:24:17 CEST