[gdome] problem with API gdome_a_unref()...
- From: Sameer Oak <sameer oak airtightnetworks net>
- To: gdome <gdome gnome org>
- Subject: [gdome] problem with API gdome_a_unref()...
- Date: Thu, 13 Apr 2006 11:11:57 +0530
Current versions of GDOME and LibXML libraries I have, are as follows:
libxml: libxml2-2.5.4-1
libxml2-devel-2.5.4-1
libgdome: gdome2-0.8.1-1
gdome2-devel-0.8.1-1
I am facing problem with API gdome_a_unref().
Kindly go through the following snippet:
--
int get_element_attribute(char *strAttrName, GdomeNode *gNode,
GdomeDOMString **attrValue)
{
GdomeException exc = 0;
GdomeDOMString *attrName = (GdomeDOMString *)NULL;
GdomeAttr *attr = (GdomeAttr *)NULL;
*attrValue = (GdomeDOMString *)NULL;
attrName = gdome_str_mkref(strAttrName);
attr = gdome_el_getAttributeNode((GdomeElement *)gNode, attrName,
&exc);
gdome_str_unref(attrName);
if(NULL == attr)
{
LOG(LOG_ERR, "<%s> NULL GDOME attribute for atrribute %s.",
__func__, strAttrName);
return FAILURE;
}
*attrValue = gdome_a_nodeValue(attr, &exc);
if(NULL == *attrValue)
{
LOG(LOG_ERR, "<%s> NULL attribute value for atrribute %s.",
__func__, strAttrName);
gdome_a_unref(attr, &exc);
return FAILURE;
}
gdome_a_unref(attr, &exc);
return OK;
}
--
After running for a long time, my Server is crashing at call
gdome_a_unref().
I am not being able to figure out why is this happening.
.
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]