[kazehakase-svn] [3817] * module/embed/per-process/kz-dbus-module.c,

Back to archive index

svnno****@sourc***** svnno****@sourc*****
Wed Sep 2 19:18:07 JST 2009


Revision: 3817
          http://sourceforge.jp/projects/kazehakase/svn/view?view=rev&revision=3817
Author:   ikezoe
Date:     2009-09-02 19:18:06 +0900 (Wed, 02 Sep 2009)

Log Message:
-----------
	* module/embed/per-process/kz-dbus-module.c,
	module/embed/per-process/kz-embed-process.c: Fix memory leak.

Modified Paths:
--------------
    kazehakase/trunk/ChangeLog
    kazehakase/trunk/module/embed/per-process/kz-dbus-module.c
    kazehakase/trunk/module/embed/per-process/kz-embed-process.c

Modified: kazehakase/trunk/ChangeLog
===================================================================
--- kazehakase/trunk/ChangeLog	2009-09-02 09:46:00 UTC (rev 3816)
+++ kazehakase/trunk/ChangeLog	2009-09-02 10:18:06 UTC (rev 3817)
@@ -18,6 +18,8 @@
 	* module/embed/per-process/kz-embed-process.c: Fix crash.
 	* module/embed/per-process/kz-dbus-embed-delegate.c:
 	Load history list after ready signal is received.
+	* module/embed/per-process/kz-dbus-module.c,
+	module/embed/per-process/kz-embed-process.c: Fix memory leak.
 
 2009-09-01  Hiroyuki Ikezoe  <poinc****@ikezo*****>
 

Modified: kazehakase/trunk/module/embed/per-process/kz-dbus-module.c
===================================================================
--- kazehakase/trunk/module/embed/per-process/kz-dbus-module.c	2009-09-02 09:46:00 UTC (rev 3816)
+++ kazehakase/trunk/module/embed/per-process/kz-dbus-module.c	2009-09-02 10:18:06 UTC (rev 3817)
@@ -44,7 +44,6 @@
     KzDBusEmbedDelegate *embed;
     GList *last;
 
-    dbus_connection_ref(connection);
     dbus_connection_setup_with_g_main(connection, NULL);
 
     g_connection = dbus_connection_get_g_connection(connection);

Modified: kazehakase/trunk/module/embed/per-process/kz-embed-process.c
===================================================================
--- kazehakase/trunk/module/embed/per-process/kz-embed-process.c	2009-09-02 09:46:00 UTC (rev 3816)
+++ kazehakase/trunk/module/embed/per-process/kz-embed-process.c	2009-09-02 10:18:06 UTC (rev 3817)
@@ -625,6 +625,7 @@
     dbus_g_connection_register_g_object(connection,
                                         KZ_EMBED_PROCESS_PATH,
                                         object);
+    dbus_g_connection_unref(connection);
     priv->proxy = dbus_g_proxy_new_for_peer(connection,
                                             KZ_DBUS_EMBED_DELEGATE_PATH,
                                             KZ_DBUS_EMBED_DELEGATE_INTERFACE);




More information about the Kazehakase-cvs mailing list
Back to archive index