GNOME Bugzilla – Bug 611773
Adjustment.Adjust with alpha-channel pixbuf eventually results in disposing a used pixbuf.
Last modified: 2010-06-08 09:44:13 UTC
Created attachment 155196 [details] [review] Make the alpha & non-alpha codepaths have the same semantics The code paths in Adjustment.Adjust () for the alpha- and non- alpha channel cases have an important difference - the alpha channel codepath modifies Input and returns it, the non-alpha channel path returns a modified copy of Input. In the alpha case, returning Input eventually results in the preview pixmap being disposed, causing debug spew to the console about GDK_IS_PIXBUF and (in View mode) the window to display garbage. The attached patch fixes this by making Adjust copy Input and then return a modified copy.
Comment on attachment 155196 [details] [review] Make the alpha & non-alpha codepaths have the same semantics Merged, good catch!