[gnome-user-share] obex: Fix variant leaks for certain configurations
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-user-share] obex: Fix variant leaks for certain configurations
- Date: Tue, 12 Nov 2013 13:20:54 +0000 (UTC)
commit eba8db1b772a8af6bfeacb4012e8392767c6525a
Author: Bastien Nocera <hadess hadess net>
Date: Fri Nov 8 18:51:46 2013 +0100
obex: Fix variant leaks for certain configurations
If "ask user" or "only for trusted devices" is selected, we'd leak
the variant containing the filename.
src/obexpush.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/obexpush.c b/src/obexpush.c
index bc8d364..66b40d1 100644
--- a/src/obexpush.c
+++ b/src/obexpush.c
@@ -489,10 +489,12 @@ obex_agent_authorize_push (GObject *source_object,
break;
case ACCEPT_BONDED:
check_if_bonded (transfer, invocation, filename);
+ g_variant_unref (variant);
/* check_if_bonded() will accept or reject the transfer */
return;
case ACCEPT_ASK:
ask_user (invocation, filename);
+ g_variant_unref (variant);
/* ask_user() will accept or reject the transfer */
return;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]