X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fxpm-ximage.c;h=cf600bc7312ed9b618d8f079c01eaef761dba26d;hb=4ade52359b6eba3621566dac79793a33aa4c915f;hp=ac17b987c25177757b0cb4bd8641681b359cb83c;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/glx/xpm-ximage.c b/hacks/glx/xpm-ximage.c index ac17b987..cf600bc7 100644 --- a/hacks/glx/xpm-ximage.c +++ b/hacks/glx/xpm-ximage.c @@ -1,5 +1,5 @@ /* xpm-ximage.c --- converts XPM data to an XImage for use with OpenGL. - * xscreensaver, Copyright (c) 1998-2006 Jamie Zawinski + * xscreensaver, Copyright (c) 1998-2013 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -157,7 +157,9 @@ xpm_to_ximage_1 (Display *dpy, Visual *visual, Colormap cmap, } row += stride; } - gdk_pixbuf_unref (pb); /* #### does doing this free colors? */ + + /* #### are colors getting freed here? */ + g_object_unref (pb); return image; } @@ -224,7 +226,7 @@ xpm_to_ximage_1 (Display *dpy, Visual *visual, Colormap cmap, if (filename) { xpm_data = 0; - if (! XpmReadFileToData ((char *) filename, &xpm_data)) + if (XpmSuccess != XpmReadFileToData ((char *) filename, &xpm_data)) { fprintf (stderr, "%s: unable to read XPM file %s\n", progname, filename);