[Kde-bindings] KDE/kdebindings/php/phpqt/src
Thomas Moenicke
tm at php-qt.org
Thu Nov 13 22:43:06 UTC 2008
SVN commit 883981 by moenicke:
* fixed malloc corruption in QString::toUpper()
CCMAIL: kde-bindings at kde.org
M +6 -6 qstring.cpp
--- trunk/KDE/kdebindings/php/phpqt/src/qstring.cpp #883980:883981
@@ -571,12 +571,12 @@
* flags: c
*/
ZEND_METHOD(QString, toUpper){
- if (ZEND_NUM_ARGS() == 0){
- QString *obj = (QString*) PHP_QT_FETCH();
- QString return_object = (QString) obj->toUpper();
- createObject(return_value,(void*) &return_object,qstring_ce, QSTRING_CLASSID);
- return;
- }
+ if (ZEND_NUM_ARGS() == 0){
+ QString *obj = (QString*) PHP_QT_FETCH();
+ QString *return_object = new QString( obj->toUpper() );
+ createObject( return_value, (void*) return_object, qstring_ce, QSTRING_CLASSID );
+ return;
+ }
}
ZEND_METHOD(QString, __destruct)
More information about the Kde-bindings
mailing list