[Xfce4-commits] <terminal:master> Fix double unref in dbus code.

Nick Schermer noreply at xfce.org
Tue Dec 8 10:56:01 CET 2009


Updating branch refs/heads/master
         to 3ee767f74d27327b3bc813fc17bedff2217bbe73 (commit)
       from 0a9f09f2b2659fc5361a2eab6dacb873e32bd0c1 (commit)

commit 3ee767f74d27327b3bc813fc17bedff2217bbe73
Author: Nick Schermer <nick at xfce.org>
Date:   Mon Dec 7 20:53:30 2009 +0100

    Fix double unref in dbus code.

 terminal/terminal-dbus.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/terminal/terminal-dbus.c b/terminal/terminal-dbus.c
index d88c0ad..0477e9f 100644
--- a/terminal/terminal-dbus.c
+++ b/terminal/terminal-dbus.c
@@ -123,15 +123,13 @@ handle_message (DBusConnection *connection,
           reply = dbus_message_new_error (message,
                                           TERMINAL_DBUS_ERROR_GENERAL,
                                           error->message);
-          dbus_connection_send (connection, reply, NULL);
-          dbus_message_unref (reply);
         }
       else
         {
           reply = dbus_message_new_method_return (message);
-          dbus_connection_send (connection, reply, NULL);
         }
 
+      dbus_connection_send (connection, reply, NULL);
       dbus_free_string_array (argv);
       dbus_message_unref (reply);
     }



More information about the Xfce4-commits mailing list