         let provider = CGDataProvider(dataInfo: &config,
                                       data: config.output.u.RGBA.rgba,
                                       size: (Int(config.input.width) * Int(config.input.height) * 4),
-                                      releaseData: webp_freeWebPData)!
+                                      releaseData: releaseData)!
         let cgImage = CGImage(
             width: Int(config.input.width),
             height: Int(config.input.height),

            decode: nil,
            shouldInterpolate: false,
            intent: CGColorRenderingIntent.defaultIntent)!

        return cgImage
    }
}

#if os(iOS) || os(macOS)
import CoreGraphics

private func releaseData(info: UnsafeMutableRawPointer?, data: UnsafeRawPointer, size: Int) -> Void {
    // core foundation objects are managed by ARC so don't need to do anything here
}

// WebPSimple class is temporary implementation until v0.1"
