[aravis/error] gv_interface: plug memory leak.



commit 502502299d0bf43e9e2607c85f7f1798d2cb24a6
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Wed May 9 17:50:55 2012 +0200

    gv_interface: plug memory leak.

 src/arvgvinterface.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/arvgvinterface.c b/src/arvgvinterface.c
index e58d6d0..f3ed551 100644
--- a/src/arvgvinterface.c
+++ b/src/arvgvinterface.c
@@ -206,8 +206,10 @@ arv_gv_interface_send_discover_packet (ArvGvInterface *gv_interface)
 				  infos->broadcast_address,
 				  (const char *) packet, size,
 				  NULL, &error);
-		if (error != NULL)
-			g_message ("error: %s", error->message);
+		if (error != NULL) {
+			arv_warning_interface ("[ArvGVInterface::send_discover_packet] Error: %s", error->message);
+			g_error_free (error);
+		}
 		arv_gv_interface_socket_set_broadcast (infos->socket, FALSE);
 	}
 



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