Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8037781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:01:30+00:00 2026-06-05T03:01:30+00:00

Filter effects show some warning Performing a costly unpadding operation! also some memory leak

  • 0

Filter effects show some warning Performing a costly unpadding operation! also some memory leak after apply on image?

my code is :-

        CIImage *imagee = [Filter outputImage];
        CIContext *context = [CIContext contextWithOptions:nil];
        CGImageRef cgImage = [context createCGImage: 
                              imagee fromRect: imagee.extent];
        UIImage *resultUIImage = [[UIImage alloc ]initWithCGImage: cgImage];
        image=resultUIImage; 
        CGImageRelease(cgImage);
        cgImage=nil;
        SaveImage=image;
        [resultUIImage release];
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T03:01:32+00:00Added an answer on June 5, 2026 at 3:01 am

    You aren’t releasing your CIImage, which is most likely where that leak is coming from (Cocoa Memory Semantics require that class methods return objects with a +0 retain count so they must be retained by the caller). At the same time, you are performing an expensive filtering of the image. You see, images may be padded with a couple extra bytes to make sure that their lines end in a 2^nth byte. But in order to load the filter, iOS has to unpad the image, which involves going in and iterating through its bytes to remove padding, which takes a while. If it doesn’t affect anything performance-wise, you could always draw on a background thread. I don’t know how safe CIImage or UIImage are, but Core Graphics is generally threadsafe.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a image & I want to apply some filter effects on it.
I want to apply filter effects to image in my app. I am new
I am currently scripting for After Effects using ExtendScript Toolkit How do I apply
How can we apply effects like a sepia filter to our camera images?
I want to apply some effects to a sound but I couldn't find one
Silverlight filter/class for cloud generation? Some HLSL or just C# class for generating clouds?
Need to call a filter function on some options based on a radio selected
I'm trying to filter some XML in JavaScript using E4X and have some specific
I'm pretty new to Javascript and have been trying to achieve some fading effects
Im having some conflicts with the Searchable plugin. I have a filter which fetches

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.