<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2920.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hi all, i'm working on an app that embed python 2.3 
with Gnu/Linux, and i'd like to have some precisions:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'm making python's modules to extend my 
application's functions with a built in script editor.</FONT></DIV>
<DIV><FONT face=Arial size=2>At now all works very well, but i'd like to know if 
i'm not forgetting some references inc/dec....</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Here is a portion of my code:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>static PyObject *<BR>Scene_GetNodeGraph(PyObject 
*self, PyObject *args)<BR>{<BR>&nbsp; NodeGraph* Ng = 
NodeGraph::GetInstance();<BR>&nbsp; std::vector&lt;String&gt; NodG;<BR>&nbsp; 
Ng-&gt;GetNodeGraph(NodG);<BR>&nbsp; PyObject* List = 
PyList_New(NodG.size());<BR>&nbsp; PyObject* Str = 
NULL;<BR>&nbsp;&nbsp;std::vector&lt;String&gt;::iterator it = 
NodG.begin();<BR>&nbsp; int i = 0;<BR>&nbsp; for (;it != 
NodG.end();it++)<BR>&nbsp; {<BR>&nbsp;&nbsp;&nbsp; Str = 
PyString_FromString(it-&gt;AsChar());<BR>&nbsp;&nbsp;&nbsp;&nbsp;PyList_SetItem(List,i,Str);<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
i++;<BR>&nbsp; }<BR>&nbsp; return List;<BR>}</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Can someone take a look at this and tell me if i 
must add some inc/decref ?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks.</FONT></DIV></FONT></DIV></BODY></HTML>