After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 613053 - gthumb crashes if dbus has been restarted
gthumb crashes if dbus has been restarted
Status: RESOLVED OBSOLETE
Product: gthumb
Classification: Other
Component: general
2.11.x
Other Linux
: Normal critical
: ---
Assigned To: Paolo Bacchilega
Paolo Bacchilega
Depends on:
Blocks:
 
 
Reported: 2010-03-16 15:54 UTC by Pedro Villavicencio
Modified: 2010-03-16 17:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Pedro Villavicencio 2010-03-16 15:54:19 UTC
this report has been filed here:

https://bugs.launchpad.net/ubuntu/+source/gthumb/+bug/537238

"gthumb 3:2.11.1-2ubuntu1 (ubuntu lucid)

gthumb crashes if dbus has been restarted. I looked over the source codes. This small patch fixes the problem.

below is patch that fixes use of uninitialized variable leading to crash when
dbus is restarted (and ck session is lost).

Signed-off-by: Lukas Hejtmanek <xhejtman@ics.muni.cz>

diff -rNu a/gthumb/gth-icon-cache.c b/gthumb/gth-icon-cache.c
--- a/gthumb/gth-icon-cache.c 2010-03-11 10:54:10.673089507 +0100
+++ b/gthumb/gth-icon-cache.c 2010-03-11 10:51:53.000000000 +0100
@@ -118,7 +118,7 @@
 gth_icon_cache_get_pixbuf (GthIconCache *icon_cache,
                           GIcon *icon)
 {
- const char *key;
+ const char *key=0;
        GdkPixbuf *pixbuf;

        if (icon != NULL)
"
Comment 1 Paolo Bacchilega 2010-03-16 17:16:37 UTC
Thanks for the patch, however this bug has already been fixed in the current development version.