Skip to content

Commit

Permalink
Fix possible memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
frlan committed Jan 31, 2013
1 parent ba57dad commit c9dfcb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tableconvert/src/tableconvert.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit c9dfcb5

Please sign in to comment.