Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Sun, 12 Oct 2014 17:17:41 UTC Commit: ac24fe492b9ded55ab73c7102ce8c8d85fe56acc https://github.com/geany/geany-plugins/commit/ac24fe492b9ded55ab73c7102ce8c8...
Log Message: ----------- Plug memory leak
Modified Paths: -------------- spellcheck/src/speller.c
Modified: spellcheck/src/speller.c 4 lines changed, 3 insertions(+), 1 deletions(-) =================================================================== @@ -308,7 +308,7 @@ void sc_speller_check_document(GeanyDocument *doc) static void broker_init_failed(void) { const gchar *err = enchant_broker_get_error(sc_speller_broker); - const gchar *msg = g_strdup_printf( + gchar *msg = g_strdup_printf( _("The Enchant library couldn't be initialized (%s)."), (err != NULL) ? err : _("unknown error (maybe the chosen language is not available)"));
@@ -316,6 +316,8 @@ static void broker_init_failed(void) if (main_is_realized()) /* show dialog only after Geany has been loaded already, i.e. not while starting up */ dialogs_show_msgbox(GTK_MESSAGE_ERROR, "%s", msg); + + g_free(msg); }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).