Skip to content
Snippets Groups Projects
Commit 5de407b6 authored by rds's avatar rds
Browse files

actually mark the element dirty in the markdirty function

parent 6667e898
No related branches found
No related tags found
......@@ -27,9 +27,9 @@
*
* Exported functions: See XXXXXXXXXXXXX.h
* HISTORY:
* Last edited: Feb 15 16:53 2006 (rds)
* Last edited: Feb 17 13:08 2006 (rds)
* Created: Fri Aug 5 14:33:49 2005 (rds)
* CVS info: $Id: zmapXMLElement.c,v 1.8 2006-02-15 17:09:15 rds Exp $
* CVS info: $Id: zmapXMLElement.c,v 1.9 2006-02-17 13:08:43 rds Exp $
*-------------------------------------------------------------------
*/
......@@ -279,21 +279,18 @@ void zmapXMLElementMarkDirty(zmapXMLElement ele)
if(ele == NULL)
return ;
ele->dirty = TRUE;
/* Free all my children */
g_list_foreach(ele->children, markElementDirty, NULL);
g_list_free(ele->children);
/* And free myself... First the contents */
if(ele->contents)
g_string_free(ele->contents, TRUE);
/* Now the attributes */
zmapXMLElementMarkAttributesDirty(ele);
/* my parent, doesn't need 2 b freed so set to null! */
/* I might want a handler here, but not sure
* (childFreedHandler)(ele->parent, ele);
*/
ele->parent = NULL;
ele->children = NULL;
ele->contents = NULL;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment