Skip to content

Memory leak - v8.x #336

@sschizas

Description

@sschizas

Hello,

I am using the following code to set up aggressive caching for the pipeline:

let dataLoaderConfiguration = DataLoader.defaultConfiguration
dataLoaderConfiguration.urlCache = nil
let dataLoader: DataLoader = .init(configuration: dataLoaderConfiguration, validate: DataLoader.validate)

var configuration = ImagePipeline.Configuration()
configuration.dataCache = try? DataCache(name: "com.theblueground.guestapp.DataCache")
configuration.dataLoader = dataLoader
configuration.imageCache = ImageCache()
ImagePipeline.shared = ImagePipeline(configuration: configuration)

I released there is a memory leak at DataLoader.init(configuration:validate:) method.

See the attached screenshots for more details.

Screen Shot 2020-01-08 at 11 34 50 AM

Screen Shot 2020-01-08 at 11 32 38 AM

Screen Shot 2020-01-08 at 11 32 58 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions