GNOME Bugzilla – Bug 749651
Accessing a Gdk.RGBA-member of Gtk.TextTag leaks memory
Last modified: 2018-05-22 15:23:48 UTC
Created attachment 303691 [details] 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
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vala/issues/500.