[gupnp] context-manager: Fix a memory leak of network devices



commit a209644127be6749c150cc390559791ae4b0fcd3
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Thu Apr 24 17:01:18 2014 +0100

    context-manager: Fix a memory leak of network devices
    
    https://bugzilla.gnome.org/show_bug.cgi?id=728889

 libgupnp/gupnp-linux-context-manager.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgupnp/gupnp-linux-context-manager.c b/libgupnp/gupnp-linux-context-manager.c
index 41c12a7..46a5408 100644
--- a/libgupnp/gupnp-linux-context-manager.c
+++ b/libgupnp/gupnp-linux-context-manager.c
@@ -291,6 +291,8 @@ network_device_free (NetworkInterface *device)
 
         g_hash_table_unref (device->contexts);
         device->contexts = NULL;
+
+        g_slice_free (NetworkInterface, device);
 }
 
 


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