if (content->src)
g_free (content->src);
if (content->content)
- g_free (content->content);
+ {
+ g_free (content->content);
+ content->content = NULL;
+ }
if (content->xmlcontent)
- xmlFreeNode (content->xmlcontent);
+ {
+ xmlFreeNode (content->xmlcontent);
+ content->xmlcontent = NULL;
+ }
content->src = g_strdup (src);
}
if (content->content)
g_free (content->content);
if (content->src)
- g_free (content->src);
+ {
+ g_free (content->src);
+ content->src = NULL;
+ }
if (content->xmlcontent)
- xmlFreeNode (content->xmlcontent);
+ {
+ xmlFreeNode (content->xmlcontent);
+ content->xmlcontent = NULL;
+ }
content->content = g_malloc (len);
memcpy (content->content, buffer, len);
}
if (content->xmlcontent)
xmlFreeNode (content->xmlcontent);
if (content->content)
- g_free (content->content);
+ {
+ g_free (content->content);
+ content->content = NULL;
+ }
if (content->src)
- g_free (content->src);
+ {
+ g_free (content->src);
+ content->src = NULL;
+ }
content->xmlcontent = xmlCopyNodeList (node);
}