Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Commit

Permalink
BXC13078 - Hard crash in icon rendering
Browse files Browse the repository at this point in the history
The new Retina icon loader code was creating new pixbuf wrappers
when looking up the Retina icon variants, instead of using the
wrapper cache. This meant that the pixbuf could have multiple
togglerefs, which is invalid and would trigger an assert.
  • Loading branch information
mhutch committed Jul 11, 2013
1 parent 5c0e1e6 commit b68ad2d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1128,7 +1128,7 @@ public static Gdk.Pixbuf Get2xVariant (Gdk.Pixbuf px)
try {
IntPtr res = g_object_get_data (px.Handle, "gdk-pixbuf-2x-variant");
if (res != IntPtr.Zero && res != px.Handle)
return new Gdk.Pixbuf (res);
return (Gdk.Pixbuf) GLib.Object.GetObject (res);
else
return null;
} catch (DllNotFoundException) {
Expand Down

0 comments on commit b68ad2d

Please sign in to comment.