[PyKDE] 1 more "taking address of temporary" bug.

Kevin Kofler kkofler at fedoraproject.org
Sun Feb 13 14:21:42 UTC 2011


commit 4300b90fe9439f3a05546e3ee3679e3892db5aa4
Author: Kevin Kofler <Kevin at tigcc.ticalc.org>
Date:   Sun Feb 13 15:21:01 2011 +0100

    1 more "taking address of temporary" bug.

 PyKDE-3.16.6-gcc46.patch |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/PyKDE-3.16.6-gcc46.patch b/PyKDE-3.16.6-gcc46.patch
index da8d38e..f035c06 100644
--- a/PyKDE-3.16.6-gcc46.patch
+++ b/PyKDE-3.16.6-gcc46.patch
@@ -101,3 +101,16 @@ diff -ur PyKDE-3.16.6/sip/kio/ksycocaentry.sip PyKDE-3.16.6-gcc46/sip/kio/ksycoc
                  if (svc->data ()->sycocaType () == KST_KService)
                  {
                      svcType = (KSharedPtr<KService> *)svc;
+diff -ur PyKDE-3.16.6/sip/kmdi/kmdichildfrm.sip PyKDE-3.16.6-gcc46/sip/kmdi/kmdichildfrm.sip
+--- PyKDE-3.16.6/sip/kmdi/kmdichildfrm.sip	2009-06-10 23:49:47.000000000 +0200
++++ PyKDE-3.16.6-gcc46/sip/kmdi/kmdichildfrm.sip	2011-02-13 15:20:32.000000000 +0100
+@@ -218,7 +218,8 @@
+ 
+     while (it.current ())
+     {
+-        PyObject *a0 = sipConvertFromInstance (&it.currentKey (), sipClass_QString, sipTransferObj);
++        QString key = it.currentKey ();
++        PyObject *a0 = sipConvertFromInstance (&key, sipClass_QString, sipTransferObj);
+         PyObject *a1 = PyInt_FromLong ((long) it.current ());
+ 
+         if ((a0 == NULL) || (a1 == NULL) || (PyDict_SetItem (dict, a0, a1) < 0))


More information about the scm-commits mailing list