summaryrefslogtreecommitdiffstats
path: root/PySide
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-10-21 18:10:54 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2010-10-21 18:48:15 -0200
commitd094064ffeec72eaf75fcaa9e23ecab6506d346b (patch)
tree2f680eef3b030f3de88b4b8b1a3c1e35ac019208 /PySide
parent26750d345c61148d45b500e891b970b8e4e79661 (diff)
downloadpyside-d094064ffeec72eaf75fcaa9e23ecab6506d346b.tar.gz
pyside-d094064ffeec72eaf75fcaa9e23ecab6506d346b.tar.xz
pyside-d094064ffeec72eaf75fcaa9e23ecab6506d346b.zip
Fix bug#420 - "Memory leak in setText"
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Ara├║jo <renato.filho@openbossa.org>
Diffstat (limited to 'PySide')
-rw-r--r--PySide/QtCore/qstring_conversions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/PySide/QtCore/qstring_conversions.h b/PySide/QtCore/qstring_conversions.h
index 670c01f..bb72611 100644
--- a/PySide/QtCore/qstring_conversions.h
+++ b/PySide/QtCore/qstring_conversions.h
@@ -39,7 +39,7 @@ struct Converter<QString>
return QString::fromUtf16(unicode, PyUnicode_GET_SIZE(pyObj));
#endif
} else if (PyString_Check(pyObj)) {
- return QString(Converter< char * >::toCpp(pyObj));
+ return QString(Converter<const char * >::toCpp(pyObj));
} else if (pyObj == Py_None) {
return QString();
} else if (Converter<QByteArray>::checkType(pyObj)) {