[network-manager-applet] applet: fix leak in ethernet_get_icon()



commit 7ae36c7b10bf3677a5365e21269123e888797227
Author: Thomas Haller <thaller redhat com>
Date:   Mon Mar 7 15:30:14 2016 +0100

    applet: fix leak in ethernet_get_icon()

 src/applet-device-ethernet.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/applet-device-ethernet.c b/src/applet-device-ethernet.c
index baa4b76..7b19a1d 100644
--- a/src/applet-device-ethernet.c
+++ b/src/applet-device-ethernet.c
@@ -167,7 +167,7 @@ ethernet_get_icon (NMDevice *device,
                *tip = g_strdup_printf (_("Requesting an ethernet network address for '%s'..."), id);
                break;
        case NM_DEVICE_STATE_ACTIVATED:
-               *out_icon_name = g_strdup_printf ("nm-device-wired");
+               *out_icon_name = "nm-device-wired";
                *tip = g_strdup_printf (_("Ethernet network connection '%s' active"), id);
                break;
        default:


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