![]() |
|
[C] Interesting memory leak gtk+ 3.12.1 - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C] Interesting memory leak gtk+ 3.12.1 (/showthread.php?tid=5705737) |
Interesting memory leak gtk+ 3.12.1 - zNinja - Aug 28, 2017 In my app I have an window object wrapper for gtk to be handy for use. I notice i have a memory leeks, but can't figure out where. after installing the object once it is not destroyed, just reused. it has fallowing methods that will be used in this example on pastebin Now for test purpose I isolated created window wrapper object and allow program to run only this 3 functions above in interval of 100 milliseconds. PHP Code By this test after many others I figured out that leak is in this tree functions unsafe_close, unsafe_open, unsafe_show but do not know where exactly. :/ I know that gtk has few bugs that lead to little memory leaks, but I got 30 mb leak in less then 20 minutes by this test, which is huge. If someone notice where I do wrong please write. Thanks. :) * - zNinja - Aug 30, 2017 Well after some research and help of gtk guys i realizes that bug causing GtkHeaderBar. So writing here for someone who face same problem in future and looking for an answer. Bug tracking link |