patch: memory leak in PD_Document::importFile()


Subject: patch: memory leak in PD_Document::importFile()
From: Chris Chamberlin (chricycle@yahoo.com)
Date: Wed Nov 14 2001 - 15:14:50 CST


Hello,

When PD_Document::importFile() fails to load, it doesn't delete the
piecetable that it just allocated. This causes a leak if importFile()
is called again. This happens on startup if the user doesn't have
their own normal.awt file - PD_Document::newDocument().

A possible patch is attached.

chris

__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com




This archive was generated by hypermail 2b25 : Wed Nov 14 2001 - 15:14:54 CST