diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-10-21 18:12:18 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:07:23 -0300 |
commit | 3c63ad23a0befc181be2db9655a4aa29f8b78168 (patch) | |
tree | d671f341b308b9207b7f543ee629d63366662598 /libshiboken/conversions.h | |
parent | 73e14b9ccf9bcf6df28a98d0ef03a71eeecedb97 (diff) |
Removes Converter<char>, because the missuse of it causes memory leak .
Diffstat (limited to 'libshiboken/conversions.h')
-rw-r--r-- | libshiboken/conversions.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libshiboken/conversions.h b/libshiboken/conversions.h index 376b1aca5..1dbc1840c 100644 --- a/libshiboken/conversions.h +++ b/libshiboken/conversions.h @@ -520,15 +520,6 @@ struct Converter_CString }; template <> struct Converter<const char*> : Converter_CString<const char*> {}; -template <> struct Converter<char*> : Converter_CString<char*> -{ - static inline char* toCpp(PyObject* pyobj) - { - if (pyobj == Py_None) - return 0; - return strdup(PyString_AsString(pyobj)); - } -}; template <> struct Converter<std::string> : Converter_CString<std::string> { |