[geany/geany-plugins] c9dfcb: Fix possible memory leaks
Frank Lanitz
git-noreply at geany.org
Thu Jan 31 22:27:42 UTC 2013
Branch: refs/heads/master
Author: Frank Lanitz <frank at frank.uvena.de>
Committer: Frank Lanitz <frank at frank.uvena.de>
Date: Thu, 31 Jan 2013 22:27:42 UTC
Commit: c9dfcb54a2147ca0593b1c8a599748f6483a6c2b
https://github.com/geany/geany-plugins/commit/c9dfcb54a2147ca0593b1c8a599748f6483a6c2b
Log Message:
-----------
Fix possible memory leaks
Modified Paths:
--------------
tableconvert/src/tableconvert.c
Modified: tableconvert/src/tableconvert.c
4 files changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -152,7 +152,7 @@ static GString* convert_to_table_worker(gchar **rows, gboolean header, gint type
{
g_string_append(replacement_str, tablerules[type].linesplit);
}
- g_free(columns);
+ g_strfreev(columns);
}
/* Adding the footer of table */
@@ -229,7 +229,7 @@ static void convert_to_table(gboolean header)
replacement = g_string_free(replacement_str, FALSE);
sci_replace_sel(doc->editor->sci, replacement);
}
- g_free(rows);
+ g_strfreev(rows);
g_free(replacement);
}
/* in case of there was no selection we are just doing nothing */
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Plugins-Commits
mailing list