[libdmapsharing] Fix memory leak in DMAPStructure Signed-off-by: W. Michael Petullo <mike flyn org>



commit e0ebbf561438c9dd72f748edcece425814a4d2f2
Author: W. Michael Petullo <mike flyn org>
Date:   Thu Feb 3 21:51:05 2011 -0600

    Fix memory leak in DMAPStructure
    Signed-off-by: W. Michael Petullo <mike flyn org>

 libdmapsharing/dmap-structure.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libdmapsharing/dmap-structure.c b/libdmapsharing/dmap-structure.c
index 2ea1670..538eca0 100644
--- a/libdmapsharing/dmap-structure.c
+++ b/libdmapsharing/dmap-structure.c
@@ -467,7 +467,7 @@ dmap_structure_parse_container_buffer (GNode *parent,
                 gchar *s = dmap_buffer_read_string ((const gchar*)&(buf[l]), codesize);
 
                 item->size = strlen (s);
-                g_value_set_string (&(item->content), s);
+                g_value_take_string (&(item->content), s);
                 break;
             }
             case DMAP_TYPE_POINTER: {



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