clear the stringlist before populating it
Dana Jansens danakj@orodu.net
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
src/python.cc
→
src/python.cc
@@ -74,6 +74,8 @@ {
PyObject *val = PyDict_GetItemString(obdict, const_cast<char*>(name)); if (!(val && PyList_Check(val))) return false; + value->clear(); + for (int i = 0, end = PyList_Size(val); i < end; ++i) { PyObject *str = PyList_GetItem(val, i); if (PyString_Check(str))