some cleanup work, and the begin of a fix for the memory leak in py_sems (Python PySemsDialog is leaking).

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@251 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Raphael Coeffic 20 years ago
parent a7e7dc0a86
commit 5b5de2b23e

@ -244,7 +244,8 @@ PySemsDialog* PySemsFactory::newDlg(const string& name)
}
// take the ownership over dlg
sipTransfer(dlg_inst,1);
sipTransferTo(dlg_inst,dlg_inst);
Py_DECREF(dlg_inst);
dlg->setPyPtrs(NULL,dlg_inst);
return dlg;

@ -116,12 +116,8 @@ public:
void setPyPtrs(PyObject *mod, PyObject *dlg);
void onSessionStart(const AmSipRequest& req);
/* void onBye(const AmSipRequest& req); */
/* void onDtmf(int event, int duration_msec); */
/* void onOtherBye(const AmSipRequest& req); */
/* void onOtherReply(const AmSipReply& r); */
// @see AmEventHandler
void process(AmEvent* event);
};

Loading…
Cancel
Save