Memory leaks in vtkWin32TextMapper::GetSize(vtkViewport* viewport, int *size)

Lisa S. Avila lisa.avila at kitware.com
Tue Jul 20 23:45:10 EDT 1999


Hello Hugues,

This problem was fixed a few days ago. Try grabbing the latest nightly release.

Lisa 


On Tuesday, July 20, 1999 5:20 PM, Hugues Wisniewski [SMTP:h_wski at yahoo.com] wrote:
> Hello !
> 
> After a few test with Purify on my project, it seems that VTK is loosing memory when calling
> vtkWin32TextMapper::GetSize, at line 130 in vtkWin32TextMapper.cxx, here's the code
> 
>   this->Font = CreateFontIndirect(&fontStruct);
>   HFONT hOldFont = (HFONT) SelectObject(hdc, this->Font);
> 
> hOldFont is never used to restore the previous font in the device context after use of this->Font,
> so it leads to a memory leak. Is it OK or do I have to look further more in my code to solve this
> leak trouble ?
> thanks a lot
> Hugues
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> 
> -----------------------------------------------------------------------------
> This is the private VTK discussion list.  Please keep messages on-topic.
> Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
> To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> <majordomo at gsao.med.ge.com>.  For help, send message body containing
> "info vtkusers" to the same address.     Live long and prosper.
> -----------------------------------------------------------------------------
> 


-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------





More information about the vtkusers mailing list