Re: How to convert a jpg image to a GtkImage ?
- From: Tom Trebisky <tom mmto org>
- To: gtk-app-devel-list gnome org
- Subject: Re: How to convert a jpg image to a GtkImage ?
- Date: Tue, 11 Sep 2007 15:11:16 -0700
On Tue, Sep 11, 2007 at 01:15:09PM -0700, Tom Trebisky wrote:
Following this thread, I decided it would be wise to avoid this kind
of leak since my application uses hundreds of loaders to load
hundreds of pixbufs, so I made my code look like:
pixbuf_p = gdk_pixbuf_loader_get_pixbuf(my_loader);
g_object_unref ( my_loader);
add_to_my_list ( pixbuf_p );
The following code did the trick nicely:
pixbuf_p = gdk_pixbuf_loader_get_pixbuf(my_loader);
g_object_ref ( pixbuf_p );
g_object_unref ( my_loader);
add_to_my_list ( pixbuf_p );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]