Re: [gthumb-list] how to get latest gThumb on Ubuntu 10.10



  #0  0x00780e5e in g_file_get_uri () from /usr/lib/libgio-2.0.so.0
  #1  0x080b918f in ?? ()
  #2  0x080b91e9 in gth_icon_cache_get_pixbuf ()
  #3  0x0808a76b in _gth_browser_add_file_menu_item_full ()
  #4  0x0808bd91 in ?? ()
  #5  0x08094d09 in ?? ()
  #6  0x08095152 in gth_browser_new ()

Hey Paolo,

http://library.gnome.org/devel/gio/unstable/GFileIcon.html#g-file-icon-get-file says that the returned GFile should not be freed ("[transfer none]").

Maybe this is needed:


diff --git a/gthumb/gth-icon-cache.c b/gthumb/gth-icon-cache.c
index f4c25f1..1f9eea0 100644
--- a/gthumb/gth-icon-cache.c
+++ b/gthumb/gth-icon-cache.c
@@ -106,7 +106,6 @@ _gth_icon_cache_get_icon_key (GIcon *icon)
                        key = get_static_string (uri);

                        g_free (uri);
-                       g_object_unref (file);
                }
        }


More here:
https://bugzilla.gnome.org/show_bug.cgi?id=620559
https://bugzilla.gnome.org/show_bug.cgi?id=640620

- Mike



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