Hi all,
while accessing the color properties of a text tag, I noticed that the memory
usage constantly goes up.
I've reduced it all down to a little example that I attached/uploaded [1]
(gdk_rgba.vala) along with a dump of valgrind [2]. Yet I'm not very sure if
that's really a bug, so I'm aski
> From: Gilzad Hamuni
> To: Vala-list
> Sent: Monday, 18 May 2015, 14:19
> Subject: [Vala] Gdk.RGBA in text tag - possible leak?
> while accessing the color properties of a text tag, I noticed that the memory
> usage constantly goes up.
>
> In the uploade
> Gesendet: Montag, 18. Mai 2015 um 16:12 Uhr
> Von: "Al Thomas"
>
> > From: Gilzad Hamuni
> > In the uploaded example I simply print
> > "tag.foreground_rgba.to_string()" to stdout, which constantly raises
> > the use of the memory. Skipping this step will keep the usage at a static
> > level
> >
> From: Gilzad Hamuni
> To: Vala-list
> Sent: Monday, 18 May 2015, 16:16
> Subject: Re: [Vala] Gdk.RGBA in text tag - possible leak?
>
>> Gesendet: Montag, 18. Mai 2015 um 16:12 Uhr
>> Von: "Al Thomas"
>> As a hint I would try removing &
> Gesendet: Montag, 18. Mai 2015 um 18:19 Uhr
> Von: "Al Thomas"
>
> > From: Gilzad Hamuni
> > Sent: Monday, 18 May 2015, 16:16
> >
> >> Gesendet: Montag, 18. Mai 2015 um 16:12 Uhr
> >> Von: "Al Thomas"
> >> As a hint I would try removing 'weak':
> >>
> >> Gdk.RGBA tmpColor = Gdk.RGBA();
> >>
- Original Message -
> From: Gilzad Hamuni
> Cc: Vala-list
> Sent: Tuesday, 19 May 2015, 20:35
> Subject: Aw: Re: [Vala] Gdk.RGBA in text tag - possible leak?
>
> I have to clear the buffer's tag table and its text to ensure that the
> raising memory con
You have found a Vala bug.
> g_object_get (_tmp26_, "foreground-rgba", &_tmp27_, NULL);
From
https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-get
--snip
void
g_object_get (gpointer object,
const gchar *first_property_name,
..
> Gesendet: Mittwoch, 20. Mai 2015 um 02:22 Uhr
> Von: "Nor Jaidi Tuah"
>
> You have found a Vala bug.
>
> > g_object_get (_tmp26_, "foreground-rgba", &_tmp27_, NULL);
>
> From
> https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-get
>
> --snip
> void
>