IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 19, 2007, 3:33:07 PM (19 years ago)
Author:
Paul Price
Message:

Plugging memory leaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageParseCamera.c

    r11145 r11199  
    123123            filters = psListAlloc(NULL);
    124124            psListAdd (filters, PS_LIST_HEAD, mdi);
     125        } else if (mdi->type == PS_DATA_METADATA_MULTI) {
     126            filters = psMemIncrRefCounter(mdi->data.list);
    125127        } else {
    126             if (mdi->type != PS_DATA_METADATA_MULTI) psAbort ("ppImage", "invalid type for FRINGE.FILTERS");
    127             filters = psMemIncrRefCounter(mdi->data.list);
     128            psAbort ("ppImage", "invalid type for FRINGE.FILTERS");
    128129        }
    129130
     
    137138            options->doFringe = true;
    138139        }
     140        psFree(iter);
     141        psFree(filters);
    139142    }
    140143skip_fringe:
Note: See TracChangeset for help on using the changeset viewer.