Mercurial > pidgin.yaz
changeset 815:4544fe6c492f
[gaim-migrate @ 825]
hm. i wonder if this does anything bad. hopefully it does some good things.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 31 Aug 2000 22:46:59 +0000 |
parents | a636ac51d15b |
children | 09e9685e24b9 |
files | src/conversation.c |
diffstat | 1 files changed, 16 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/conversation.c Thu Aug 31 21:33:12 2000 +0000 +++ b/src/conversation.c Thu Aug 31 22:46:59 2000 +0000 @@ -998,7 +998,11 @@ face = gdk_pixmap_create_from_xpm_d(window->window, &mask, &window->style->base[GTK_STATE_NORMAL], tongue_xpm); } - if (face || strlen(m) < 3) return face; + if (face || strlen(m) < 3) { + gdk_bitmap_unref(mask); + return face; + } + *len = 3; if ( !strncmp(m, ":-)", 3)) { face = gdk_pixmap_create_from_xpm_d(window->window, &mask, &window->style->base[GTK_STATE_NORMAL], smile_xpm); @@ -1038,7 +1042,11 @@ face = gdk_pixmap_create_from_xpm_d(window->window, &mask, &window->style->base[GTK_STATE_NORMAL], bigsmile_xpm); } - if (face || strlen(m) < 4) return face; + if (face || strlen(m) < 4) { + gdk_bitmap_unref(mask); + return face; + } + *len = 4; if ( !strncmp(m, "O:-)", 4)) { face = gdk_pixmap_create_from_xpm_d(window->window, &mask, &window->style->base[GTK_STATE_NORMAL], angel_xpm); @@ -1047,12 +1055,17 @@ face = gdk_pixmap_create_from_xpm_d(window->window, &mask, &window->style->base[GTK_STATE_NORMAL], luke03_xpm); } - if (face || strlen(m) < 6) return face; + if (face || strlen(m) < 6) { + gdk_bitmap_unref(mask); + return face; + } + *len = 6; if ( !strncmp(m, ">:o", 6)) { face = gdk_pixmap_create_from_xpm_d(window->window, &mask, &window->style->base[GTK_STATE_NORMAL], yell_xpm); } + if (face) gdk_bitmap_unref(mask); return face; }