[poppler] Private TextPage destructor

Carlos Garcia Campos carlosgc at gnome.org
Thu Jun 17 00:35:17 PDT 2010


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20100617/dcd605a9/attachment.pgp>


More information about the poppler mailing list