Mercurial > pidgin.yaz
diff pidgin/gtkthemes.c @ 18295:464004cc58e4
propagate from branch 'im.pidgin.pidgin' (head 704b8c18f7c29f1fc8bfcf640275d2a9928ed03c)
to branch 'org.maemo.garage.pidgin.smiley-install' (head 6a34c0d525ca3bb40837ac0334d8a353af0b0e34)
author | Gabriel Schulhof <nix@go-nix.ca> |
---|---|
date | Wed, 27 Jun 2007 21:43:18 +0000 |
parents | 6c9c16275868 926ccb104da0 |
children | e56531865ea5 |
line wrap: on
line diff
--- a/pidgin/gtkthemes.c Sun Jun 03 09:40:38 2007 +0000 +++ b/pidgin/gtkthemes.c Wed Jun 27 21:43:18 2007 +0000 @@ -258,6 +258,9 @@ list->next = child; else theme->list = child; + /* Reverse the Smiley list since it was built in reverse order for efficiency reasons */ + if (list != NULL) + list->smileys = g_slist_reverse(list->smileys); list = child; } else if (!g_ascii_strncasecmp(i, "Name=", strlen("Name="))) { int len; @@ -313,14 +316,16 @@ } - /* Reverse the Smiley list since it was built in reverse order for efficiency reasons */ - list->smileys = g_slist_reverse(list->smileys); if (!have_used_sfile) g_free(sfile); } } + /* Reverse the Smiley list since it was built in reverse order for efficiency reasons */ + if (list != NULL) + list->smileys = g_slist_reverse(list->smileys); + g_free(dirname); fclose(f);