psd_status psd_image_free(psd_context * context) { if(context == NULL) return psd_status_invalid_context; psd_color_mode_data_free(context); psd_image_resource_free(context); psd_layer_and_mask_free(context); psd_image_data_free(context); psd_image_blend_free(context); psd_stream_free(context); psd_free(context); return psd_status_done; }
psd_status psd_image_free(psd_context * context) { if(context == NULL) return psd_status_invalid_context; psd_color_mode_data_free(context); psd_image_resource_free(context); psd_layer_and_mask_free(context); psd_image_data_free(context); psd_image_blend_free(context); psd_stream_free(context); //psd_free(context); //[DP] the application is responsible for this return psd_status_done; }