[gnome-keyring] GkdGpgAgent: Unref GIOChannel when no longer needed



commit 39aeef6f368e4d8517f19b83c33d55b9cc87f44f
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Tue Oct 14 10:49:36 2014 +0200

    GkdGpgAgent: Unref GIOChannel when no longer needed
    
    This fixes a memory leak reported by valgrind on daemon shutdown
    (tested by starting a new daemon instance with --replace).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=738508

 daemon/gpg-agent/gkd-gpg-agent.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gpg-agent/gkd-gpg-agent.c b/daemon/gpg-agent/gkd-gpg-agent.c
index 28f5e7f..0d94adc 100644
--- a/daemon/gpg-agent/gkd-gpg-agent.c
+++ b/daemon/gpg-agent/gkd-gpg-agent.c
@@ -207,6 +207,7 @@ run_client_thread (gpointer data)
        }
 
        g_io_channel_shutdown (call.channel, FALSE, NULL);
+       g_io_channel_unref (call.channel);
        g_object_unref (call.module);
 
        close (call.sock);


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