Re: [Vala] Memory leak in async dbus calls



Hi,

On Wed, 2010-02-03 at 16:15 +0100, Dierberg, Sascha wrote:
compiling this min vala test file I got code that calls 

_data_ = g_slice_new0 (testDBusProxySetLedData);  

in test_dbus_proxy_set_led_async which is never freeed nor has the 

dbus_pending_call_set_notify (_pending, test_dbus_proxy_set_led_ready,
_data_, NULL);

a valid DBusFreeFunction (param 4: NULL). 

What I am missing is a line like:

g_slice_free(testDBusProxySetLedData, _data_); 

This and a few related memory leaks have been fixed now.

Jürg




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]