Accessing a Gdk.RGBA-member of Gtk.TextTag leaks memory
Submitted by gilzad
Link to original bug (#749651)
Description
Created attachment 303691 Vala code that reproduces a memleak when accessing a TextTag's RGBA-member.
Hi all,
according to the discussion on the mailing list [1] Vala doesn't free allocated memory after reading from an rgba-member of Gtk.Texttag. More specifically:
After
g_object_get (tmp26, "foreground-rgba", &tmp27, NULL);
tmp27 will never be freed.
The attached example (gdk_rgba.vala) reads from a TextTag's foreground_rgba in a loop for 20 seconds, during which the memory consumption constantly raises. The line
stdout.printf(tag.foreground_rgba.to_string()+"\n");
is where the leak occours.
Valgrind's dump for that case is uploaded here https://gist.github.com/anonymous/f1aead08848226949f48 .
Let me know if I can do anything.
Thanks & best
gilzad
[1] http://thread.gmane.org/gmane.comp.programming.vala/11446
Attachment 303691, "Vala code that reproduces a memleak when accessing a TextTag's RGBA-member.":
gdk_rgba.vala
Version: 0.28.x