Changeset 535


Ignore:
Timestamp:
Apr 22, 2011, 9:14:41 PM (6 years ago)
Author:
sam
Message:

imlib: fix an old bug in the linked list that used to cause a memory
leak because not all elements were destroyed, but now simply crashes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/linked.cpp

    r534 r535  
    3030linked_list::~linked_list()
    3131{
     32    m_count = 0; // ensure destructors calling unlink() won't mess with us
     33
    3234    if (m_first)
    3335        m_first->Prev()->SetNext(NULL); // set the prev nodes next to NULL
Note: See TracChangeset for help on using the changeset viewer.