Re: pixbuf problems



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]