Re: should I ref/strdup values in my _set_property() method



I was asking because in the gtk (and other) source one can find many places
where version a) is used (no strdup, no ref).

Stefan

Owen Taylor wrote:
On Wed, 2004-09-22 at 09:46 -0400, Owen Taylor wrote:

Just to clarify a typo:


B). A general convention is callers are responsible for copying

                              ^^^^^^^
                              callees

(or refing) data passed to them.




-- 
      \|/            Stefan Kost
     <@ @>           private            business
+-oOO-(_)-OOo------------------------------------------------------ - - -  -   -
|       __  Address  Simildenstr. 5     HTWK Leipzig, Fb IMN, Postfach 301166
|      ///           04277 Leipzig      04251 Leipzig
| __  ///            Germany            Germany
| \\\///    Phone    +49341 2253538     +49341 30766101
|  \__/     EMail    st_kost_at_gmx.net kost_at_imn.htwk-leipzig.de
|           WWW      www.sonicpulse.de  www.imn.htwk-leipzig.de/~kost/about.html
===-=-=--=---=---------------------------------- - - -  -    -


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]