Re: pixbuf problems
- From: Wolfgang Sourdeau <wolfgang ultim net>
- To: jay <mocat shell2 qpt com>
- cc: gnome-devel-list gnome org
- Subject: Re: pixbuf problems
- Date: Mon, 3 Apr 2000 05:49:29 -0400 (EDT)
On Thu, 30 Mar 2000, jay wrote:
> if ((pixbuf != NULL) && (pixbuf->ref-count > 0))
> gdk_pixbuf_unref(pixbuf); /* destroy pixbuf - refcount
> will always be 1 */
What happens if you remove the "&& (pixbuf->ref-count > 0)" from your
condition?
>From what I understand in the gtk/gdk logic, any_object_unref(id) will
automatically check for id->ref_count and destroy id if (ref_count ==
0).
Well. This logically won't solve your problem, but will certainly clean
up your code a little.
WOlfgang
--
A chicken is an egg's way of producing more eggs.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]