[Kde-bindings] KDE/kdebindings/php/phpqt/src

Thomas Moenicke tm at php-qt.org
Fri Jul 25 09:29:53 UTC 2008


SVN commit 837625 by moenicke:

* calling the dtor before freeing
* freeing, then removing the zval from the stack

CCMAIL: kde-bindings at kde.org



 M  +4 -1      context.cpp  


--- trunk/KDE/kdebindings/php/phpqt/src/context.cpp #837624:837625
@@ -21,6 +21,7 @@
  */
 
 #include "context.h"
+#include "zend.h"
 #include <QByteArray>
 
 Context* Context::m_Context = 0;
@@ -144,6 +145,8 @@
 
 void Context::removeStaticZVal()
 {
-    efree( m_Context->d->zvalStack.pop() );
+    zval_dtor( m_Context->d->zvalStack.top() );
+    efree( m_Context->d->zvalStack.top() );
+    m_Context->d->zvalStack.pop();
 }
 



More information about the Kde-bindings mailing list