From 58c503b6940999476c042709461b8ed1f4674c3d Mon Sep 17 00:00:00 2001 From: Kevin Kofler Date: Feb 13 2011 11:41:01 +0000 Subject: Another "taking address of temporary" bug. --- diff --git a/PyKDE-3.16.6-gcc46.patch b/PyKDE-3.16.6-gcc46.patch index f228c88..82fae71 100644 --- a/PyKDE-3.16.6-gcc46.patch +++ b/PyKDE-3.16.6-gcc46.patch @@ -13,3 +13,16 @@ diff -ur PyKDE-3.16.6/sip/kdecore/kmountpoint.sip PyKDE-3.16.6-gcc46/sip/kdecore if ((inst == NULL) || (PyList_Append (plist, inst) < 0)) { +diff -ur PyKDE-3.16.6/sip/kdeui/kkeydialog.sip PyKDE-3.16.6-gcc46/sip/kdeui/kkeydialog.sip +--- PyKDE-3.16.6/sip/kdeui/kkeydialog.sip 2009-06-10 23:40:27.000000000 +0200 ++++ PyKDE-3.16.6-gcc46/sip/kdeui/kkeydialog.sip 2011-02-13 12:39:23.000000000 +0100 +@@ -204,7 +204,8 @@ + + while (it.current ()) + { +- PyObject *a0 = sipConvertFromInstance (&it.currentKey (), sipClass_QCString, sipTransferObj); ++ QString key = it.currentKey (); ++ PyObject *a0 = sipConvertFromInstance (&key, sipClass_QCString, sipTransferObj); + PyObject *a1 = PyInt_FromLong ((long) it.current ()); + + if ((a0 == NULL) || (a1 == NULL) || (PyDict_SetItem (dict, a0, a1) < 0))