Fix memory leak in read_regex().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5171 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
3e282dea44
commit
afd1ce1a60
@ -8,6 +8,8 @@
|
|||||||
thanks).
|
thanks).
|
||||||
* src/build.c:
|
* src/build.c:
|
||||||
Fix saving non-project filetype error regex.
|
Fix saving non-project filetype error regex.
|
||||||
|
* src/build.c:
|
||||||
|
Fix memory leak in read_regex().
|
||||||
|
|
||||||
|
|
||||||
2010-08-15 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
2010-08-15 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||||
|
@ -2130,7 +2130,7 @@ static gboolean read_row(BuildDestination *dst, BuildTableData table_data, gint
|
|||||||
static gboolean read_regex(GtkWidget *regexentry, gchar **src, gchar **dst)
|
static gboolean read_regex(GtkWidget *regexentry, gchar **src, gchar **dst)
|
||||||
{
|
{
|
||||||
gboolean changed = FALSE;
|
gboolean changed = FALSE;
|
||||||
gchar *reg = g_strdup(gtk_entry_get_text(GTK_ENTRY(regexentry)));
|
const gchar *reg = gtk_entry_get_text(GTK_ENTRY(regexentry));
|
||||||
|
|
||||||
if (
|
if (
|
||||||
(
|
(
|
||||||
@ -2146,7 +2146,7 @@ static gboolean read_regex(GtkWidget *regexentry, gchar **src, gchar **dst)
|
|||||||
{
|
{
|
||||||
if (dst != NULL)
|
if (dst != NULL)
|
||||||
{
|
{
|
||||||
setptr(*dst, reg);
|
setptr(*dst, g_strdup(reg));
|
||||||
changed = TRUE;
|
changed = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user