Menu ▾ ▴

#5 dds memory leak

closed
None
5
2012-10-31
2006-02-10
swilcox
No

In PluginDDS.cpp in the LoadDXT_Helper(...) function,
there exists this line:

Block *input_buffer = new Block[(width + 3) / 4];

input_buffer is never free'd.

The solution is to add this line right before the end
of the function:

delete [] input_buffer;

Discussion

  • Hervé Drolon

    Hervé Drolon - 2006-02-19

    Logged In: YES
    user_id=613758

    Thanks for pointing this bug.
    Your patch has been commited to the CVS.

    Hervé Drolon

     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Anonymous
Anonymous

Add attachments
Cancel