fixed memory leak

This commit is contained in:
Andreas Steffen
2010-11-16 21:37:38 +01:00
parent 343f4793a8
commit ad7e3b1d1e
@@ -328,7 +328,7 @@ METHOD(recommendations_t, destroy, void,
{
recommendation_entry_t *entry;
while (this->recs->remove_last(this->recs, (void**)&entry))
while (this->recs->remove_last(this->recs, (void**)&entry) == SUCCESS)
{
free(entry->reason.ptr);
free(entry->reason_language.ptr);