# HG changeset patch # User Yoshiki Yazawa # Date 1219667829 -32400 # Node ID 8670e1572be80b3ee74f8988b6e1d9c5bb74b05a # Parent e13103257b33701b39cdf021e1600eba9f707766 fix for a bug that apply_filter() would crash if both sender and buffer have been cleared. diff -r e13103257b33 -r 8670e1572be8 pidgin-twitter.c --- a/pidgin-twitter.c Mon Aug 25 21:17:02 2008 +0900 +++ b/pidgin-twitter.c Mon Aug 25 21:37:09 2008 +0900 @@ -1516,6 +1516,9 @@ const gchar *list = NULL; gchar **candidates = NULL, **candidate = NULL; + g_return_if_fail(*sender != NULL); + g_return_if_fail(*buffer != NULL); + gchar *plain = strip_html_markup(*buffer); switch(service) { @@ -1557,6 +1560,7 @@ break; } } + g_free(user); g_match_info_next(match_info, NULL); }