Excerpts from Johnny MariƩthoz's message of jue jun 17 08:31:54 +0200 2010: > Dear all, > > I try to use swig to create a python wrapper to poppler (not on poppler-glib > but on the poppler base classes), and I note that the destructor of TextPage > is private. > > As swig do not wrap private/protected methods I have memory leaks. Are they > good reasons to make the destructor > private?
Yes, TextPage has a reference counter, so you should never call delete on a TextPage instance, but ::decRefCnt(). > From TextOutputDev.h > > private: > > // Destructor. > ~TextPage(); > > Many thanks in advance. -- Carlos Garcia Campos PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462
signature.asc
Description: PGP signature
_______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
