# HG changeset patch # User Richard Nelson # Date 1187310782 0 # Node ID ed80bace093423dcaffc09239592340028eb6010 # Parent 20c2c5a68aee090ba35e4f086fad004defd3e769 leak fix, and fix nosound diff -r 20c2c5a68aee -r ed80bace0934 finch/gntsound.c --- a/finch/gntsound.c Thu Aug 16 20:53:24 2007 +0000 +++ b/finch/gntsound.c Fri Aug 17 00:33:02 2007 +0000 @@ -446,7 +446,7 @@ method = purple_prefs_get_string(make_pref("/method")); - if (!strcmp(method, "none")) { + if (!strcmp(method, "nosound")) { return; } else if (!strcmp(method, "beep")) { beep(); @@ -747,6 +747,7 @@ } if (pref_dialog->selector) gnt_widget_destroy(pref_dialog->selector); + g_free(pref_dialog->original_profile); g_free(pref_dialog); pref_dialog = NULL; }