<div dir="ltr"><div>On Mon, Oct 31, 2016 at 3:30 PM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-">On Mon, Oct 31, 2016 at 1:56 PM, Ken Martin <span dir="ltr"><<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>So I recently fixed the leak reporting in VTK and with Will's help cleaned up some leaks that had crept in recently. But.. there are some leaks in vtkTkRenderWidget tests under Python that I'm a bit stuck on. I added some error checking code and the</div><div><br></div><div>vtkTkRenderWidget_Destroy(char *memPtr)<br></div><div><br></div><div>is never getting invoked. As I don't know Python, the test example leaves me a bit lost as to what should be calling that. If anyone has an idea for a fix please go ahead. If not I'll suppress the errors on those four tests so the nightlies are clean. etc.</div></div></blockquote><div><br></div></span><div>I'll take a look.  The trick will be to ensure it isn't destroyed too soon...</div></div></div></div></blockquote><div><br></div><div>The following MR fixes the leaks by explicitly calling destroy():</div><a href="http://gitlab.kitware.com/vtk/vtk/merge_requests/2125">http://gitlab.kitware.com/vtk/vtk/merge_requests/2125</a><div>It's not an ideal solution, but it's a workable one.</div><div> </div><div> - David</div></div></div></div>