pike.git / src / post_modules / GTK2 / source / support.c

version» Context lines:

pike.git/src/post_modules/GTK2/source/support.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: support.c,v 1.24 2010/07/31 23:35:36 marcus Exp $ + || $Id: support.c,v 1.25 2010/07/31 23:54:07 marcus Exp $   */      #include <version.h>   #include <bignum.h>   #include <stdarg.h>      #ifndef INIT_VARIABLES   extern struct program *image_color_program;   extern struct program *image_program;   #endif
pike.git/src/post_modules/GTK2/source/support.c:101:    x = img_data->xsize;    y = img_data->ysize;          if (x==0 || y==0)    Pike_error("Size of image must be > 0x0\n");    if (pi) {    i = *pi;    if (i != NULL && ((i->width!=x) || (i->height!=y))) {    g_object_unref(i); -  gdk_image_destroy(i); +     i=NULL;    }    } else    i=NULL;    if (!i) {    PFTIME("Create");    i=(void *)gdk_image_new(fast,vis,x,y);    }    if (pi)    *pi = i;