From b092981a7f0e8ef3580619c21fc7175e18e5f074 Mon Sep 17 00:00:00 2001 From: azv Date: Tue, 9 Jul 2019 10:08:02 +0300 Subject: [PATCH] Fix regression in filters tests. --- src/FiltersAPI/FiltersAPI.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FiltersAPI/FiltersAPI.i b/src/FiltersAPI/FiltersAPI.i index 31da0685b..8cecbc101 100644 --- a/src/FiltersAPI/FiltersAPI.i +++ b/src/FiltersAPI/FiltersAPI.i @@ -108,7 +108,7 @@ } } else if (PyUnicode_Check(item)) { - temp.push_back(FiltersAPI_Argument(PyUnicode_AsUTF8(item))); + temp.push_back(FiltersAPI_Argument(std::string(PyUnicode_AsUTF8(item)))); } else if (PyBool_Check(item)) { temp.push_back(FiltersAPI_Argument(item == Py_True)); -- 2.39.2