GNOME Bugzilla – Bug 531012
libmetacity-private has lots of memory leaks
Last modified: 2016-08-18 12:16:27 UTC
Steps to reproduce: 1. 2. 3. Stack trace: Other information: gnome-appearance-properties crashes on Solaris X86 due to this issue.
Created attachment 110264 [details] [review] memory leak By loading Solaris libumem.so to detect application memory issue, I found lots of libmetacity-private.so memory leaks: libmetacity-private.so.0.1600.2`pos_tokenize libmetacity-private.so.0.1600.2`meta_draw_spec_new I found that token.d.v.name is assigned by g_strndup if token.type equals to POS_TOKEN_VARIABLE. It will be freed in free_tokens() in the same type. While it seems token.type sometimes can be changed in meta_theme_replace_constants() if the type is POS_TOKEN_VARIABLE, I'm not sure if it's the reason of lots of mem leaks.
Oh, please ignore my last sentence "I'm not sure if it's the reason of lots of mem leaks".
After did more investigation, we found the memory issue is not the root reason of gnome-appearance-properties crashing on Solaris X86, so I downgrade the severity. But the issue is existing, so I still hope the patch can be accepted.
Review of attachment 110264 [details] [review]: Good catch. Committed.