[maemo-developers] [maemo-developers] memory in leak in the python bindung of dbus

From: Fabio Forno fabio.forno at gmail.com
Date: Fri Dec 22 17:15:12 EET 2006
when I run the following program on the 770 (latest os release and
python mistral packages) the allocated memory continues encreasing at
a constant rate, util the process dies. I think there are only two
options: a memory leak of the python bindings for dbus or a
programming error ;)

import dbus
import dbus.decorators
import dbus.glib
from dbus.types import *

import gobject
bus = dbus.SystemBus()

icd_obj = bus.get_object("com.nokia.icd", "/com/nokia/icd")
icd = dbus.Interface(icd_obj, "com.nokia.icd")

def got_reply(*args):
        reply_handler = got_reply,
        error_handler = got_reply


mainloop = gobject.MainLoop()

Fabio Forno, PhD
Istituto Superiore Mario Boella
Jabber ID: xmpp:ff at kamin.polito.it
** Try Jabber http://www.jabber.org

More information about the maemo-developers mailing list