> From: Aleksander Morgado <[email protected]> > Date: Tue, 13 Apr 2010 22:17:06 +0200 > > > Hints: > * Initially, the printable string is not allocated. > * The first time this pdf_text_get_printable() method is called in a > given pdf_text_t, it will internally setup the proper string contents to > be returned. > * The following times this method is called, and IF the pdf_text_t > contents have not been modified, the same internal string is returned. > * Whenever the contents of the pdf_text_t are modified, the internal > buffer should be freed, so that any new call to pdf_text_get_printable() > will re-create the printable string again with the proper contents. >
Hey Aleks, We shouldn't forget about multi-threading in that case, right ? cheers, -gerel
