fixed memory leaks.
This commit is contained in:
@@ -87,6 +87,7 @@ void GWENHYWFAR_CB _freeData(GWEN_UNUSED void *bp, void *p)
|
||||
if (xo->fdObject) {
|
||||
AQH_Object_Disable(xo->fdObject);
|
||||
AQH_Object_free(xo->fdObject);
|
||||
GWEN_RingBuffer_free(xo->ringBuffer);
|
||||
xo->fdObject=NULL;
|
||||
}
|
||||
GWEN_FREE_OBJECT(xo);
|
||||
@@ -379,7 +380,7 @@ int AQH_MsgReader_ReadRemainderFromRingbuffer(AQH_OBJECT *o)
|
||||
}
|
||||
}
|
||||
else {
|
||||
DBG_ERROR(AQH_LOGDOMAIN, "Nothing to read??");
|
||||
DBG_INFO(AQH_LOGDOMAIN, "Nothing to read??");
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user