fixed memory leaks.
This commit is contained in:
@@ -246,8 +246,12 @@ int _hasDateChanged(AQHREACT_UNIT *unit)
|
||||
GWEN_DATE *today;
|
||||
|
||||
today=GWEN_Date_CurrentDate();
|
||||
if (GWEN_Date_Compare(today, xunit->date)!=0)
|
||||
|
||||
if (GWEN_Date_Compare(today, xunit->date)!=0) {
|
||||
GWEN_Date_free(today);
|
||||
return 1;
|
||||
}
|
||||
GWEN_Date_free(today);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user