<!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> </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> </DIV>
<DIV><FONT face=Arial size=2>Here is a portion of my code:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>static PyObject *<BR>Scene_GetNodeGraph(PyObject
*self, PyObject *args)<BR>{<BR> NodeGraph* Ng =
NodeGraph::GetInstance();<BR> std::vector<String> NodG;<BR>
Ng->GetNodeGraph(NodG);<BR> PyObject* List =
PyList_New(NodG.size());<BR> PyObject* Str =
NULL;<BR> std::vector<String>::iterator it =
NodG.begin();<BR> int i = 0;<BR> for (;it !=
NodG.end();it++)<BR> {<BR> Str =
PyString_FromString(it->AsChar());<BR> PyList_SetItem(List,i,Str);<BR>
i++;<BR> }<BR> return List;<BR>}</FONT></DIV>
<DIV> </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> </DIV>
<DIV><FONT face=Arial size=2>Thanks.</FONT></DIV></FONT></DIV></BODY></HTML>