libpsf icon indicating copy to clipboard operation
libpsf copied to clipboard

solve a crash problem and a memory leak problem

Open booknouse opened this issue 2 years ago • 0 comments

psf.cc,remote redundant close in destructor,because it would be called in ~PSFFile.psfile.cc, use new validate method, and add m_buffer's NULL judgement to Make the close method reentrant(cause crash).psfinternal.h, add ~PropertyBlock method, new validate method to PSFFile and change m_size to ssize_t.psfpropertyblock.cc, delete pointers in m_propmap to avoid memory leaks.

booknouse avatar Jan 14 '24 08:01 booknouse