[empathy] don't leak the keys returned by g_key_file_get_keys()



commit 301f075fbc9ebd1f6330a5ce6ba19fbace3ea80a
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Sep 5 16:01:44 2011 +0200

    don't leak the keys returned by g_key_file_get_keys()

 goa-mc-plugin/mcp-account-manager-goa.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/goa-mc-plugin/mcp-account-manager-goa.c b/goa-mc-plugin/mcp-account-manager-goa.c
index 7804f9e..a1fe9f8 100644
--- a/goa-mc-plugin/mcp-account-manager-goa.c
+++ b/goa-mc-plugin/mcp-account-manager-goa.c
@@ -396,6 +396,8 @@ mcp_account_manager_goa_get (const McpAccountStorage *self,
             }
         }
 
+      g_strfreev (keys);
+
       /* Enabled */
       get_enabled (self, am, acct, object);
     }



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