Re: free pixbuf



I have error message after g_object_unref(pixbuf).
The error message is:
GLib-GObject-WARNING **: invalid cast from `GdkPixbuf' to `GtkWidget'

what is wrong here?


2010/5/17 Ian Liu Rodrigues <ian liu88 gmail com>:
> I guess you must use g_object_unref. The documentation says it starts with
> one reference in case of success.
>
> Ian L.
>
> On Mon, May 17, 2010 at 2:01 PM, maxim maxim <look2004il gmail com> wrote:
>>
>> Hi to all,
>>
>> How to free allocated memory for pixbuf with gdk_pixbuf_new_from_file()?
>>
>> Thanks
>> _______________________________________________
>> gtk-list mailing list
>> gtk-list gnome org
>> http://mail.gnome.org/mailman/listinfo/gtk-list
>
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]