mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-07 07:28:01 +02:00
2006-06-12 Ross Burton <ross@openedhand.com>
* glib/dbus-gproxy.c: Don't leak a GArray when firing signals (thank Rob Taylor for review).
This commit is contained in:
parent
fc55f9adf8
commit
fb4cd60e85
2 changed files with 8 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
||||||
|
2006-06-12 Ross Burton <ross@openedhand.com>
|
||||||
|
|
||||||
|
* glib/dbus-gproxy.c:
|
||||||
|
Don't leak a GArray when firing signals (thank Rob Taylor for review).
|
||||||
|
|
||||||
2006-06-12 Thiago Macieira <thiago.macieira@trolltech.com>
|
2006-06-12 Thiago Macieira <thiago.macieira@trolltech.com>
|
||||||
|
|
||||||
* Released 0.62
|
* Released 0.62
|
||||||
|
|
|
||||||
|
|
@ -1625,6 +1625,7 @@ dbus_g_proxy_emit_remote_signal (DBusGProxy *proxy,
|
||||||
char *name;
|
char *name;
|
||||||
GQuark q;
|
GQuark q;
|
||||||
DBusGProxyPrivate *priv = DBUS_G_PROXY_GET_PRIVATE(proxy);
|
DBusGProxyPrivate *priv = DBUS_G_PROXY_GET_PRIVATE(proxy);
|
||||||
|
GArray *msg_gsignature = NULL;
|
||||||
|
|
||||||
g_return_if_fail (!DBUS_G_PROXY_DESTROYED (proxy));
|
g_return_if_fail (!DBUS_G_PROXY_DESTROYED (proxy));
|
||||||
|
|
||||||
|
|
@ -1645,7 +1646,6 @@ dbus_g_proxy_emit_remote_signal (DBusGProxy *proxy,
|
||||||
if (q != 0)
|
if (q != 0)
|
||||||
{
|
{
|
||||||
GArray *gsignature;
|
GArray *gsignature;
|
||||||
GArray *msg_gsignature;
|
|
||||||
guint i;
|
guint i;
|
||||||
|
|
||||||
gsignature = g_datalist_id_get_data (&priv->signal_signatures, q);
|
gsignature = g_datalist_id_get_data (&priv->signal_signatures, q);
|
||||||
|
|
@ -1672,6 +1672,8 @@ dbus_g_proxy_emit_remote_signal (DBusGProxy *proxy,
|
||||||
|
|
||||||
out:
|
out:
|
||||||
g_free (name);
|
g_free (name);
|
||||||
|
if (msg_gsignature)
|
||||||
|
g_array_free (msg_gsignature, TRUE);
|
||||||
return;
|
return;
|
||||||
mismatch:
|
mismatch:
|
||||||
#if 0
|
#if 0
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue