[Vala] Gdk.RGBA in text tag - possible leak?



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 asking here first. Of course I'll file 
a bug if you advise me to.

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 [3].

Following a hint [4] I exported "G_SLICE=always-malloc" to keep the memory usage as tight as possible.


I've tested the example-code and made the dumps on:
Linux 3.11-2-amd64 #1 SMP Debian 3.11.8-1 (2013-11-13) x86_64 GNU/Linux
GTK 3.8.4-1
Vala 0.28.0

Furthermore I tested the same code on a VM and saw that the memory usage raises there, too:
Linux 3.16.0-4-586 #1 Debian 3.16.7-ckt2-1 (2014-12-08) i686 GNU/Linux
GTK 3.12.2-3+b1
Vala 0.26.0



I'll be glad about any hint. Let me know if I can do anything.

Thanks in advance

gilzad

[1] https://gist.github.com/anonymous/4233fcf7325112b961e5
[2] https://gist.github.com/anonymous/c2aa76f2155daeb3acd7
[3] https://gist.github.com/anonymous/bb9265e42fdeaa04a540
[4] http://blog.kosmokaryote.org/2013/04/technology-memory-leakage-and-vala.html

Attachment: gdk_rgba.vala
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]