[gnome-bluetooth] Fix small memleak



commit 57f54ba84532f45236daca3deae067eee3e4d8ee
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jun 10 23:36:03 2009 +0100

    Fix small memleak
---
 sendto/main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/sendto/main.c b/sendto/main.c
index 7500640..7206286 100644
--- a/sendto/main.c
+++ b/sendto/main.c
@@ -292,6 +292,8 @@ static gchar *get_device_name(const gchar *address)
 			found_name = name;
 			break;
 		}
+		g_free (bdaddr);
+		g_free (name);
 
 		cont = gtk_tree_model_iter_next(model, &iter);
 	}



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