Mercurial > pidgin.yaz
diff plugins/spellchk.c @ 7606:08c9d0dcf906
[gaim-migrate @ 8229]
" Some things allocated with g_malloc() were being
free()'d instead of g_free()'d
This patch fixes the ones I managed to find." --Stu Tomlinson (nosnilmot)
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 23 Nov 2003 15:32:25 +0000 |
parents | fa0324675ed9 |
children | ea2d07ad05a9 |
line wrap: on
line diff
--- a/plugins/spellchk.c Sun Nov 23 15:25:04 2003 +0000 +++ b/plugins/spellchk.c Sun Nov 23 15:32:25 2003 +0000 @@ -107,7 +107,7 @@ buf = g_build_filename(gaim_user_dir(), "dict", NULL); g_file_get_contents(buf, &ibuf, &size, NULL); - free(buf); + g_free(buf); if(!ibuf) { ibuf = g_strdup(defaultconf); size = strlen(defaultconf); @@ -133,7 +133,7 @@ } } } - free(ibuf); + g_free(ibuf); }