[Xfce4-commits] <orage:master> 4.6.9.3 Fixed bug 10108 g_free is called on two strdup allocations
Juha Kautto
noreply at xfce.org
Mon Nov 4 14:42:01 CET 2013
Updating branch refs/heads/master
to e65e3637822a24f60fe79858035278f6b711a7e2 (commit)
from f4f185f94a200dc0cb460271baba044c1f237553 (commit)
commit e65e3637822a24f60fe79858035278f6b711a7e2
Author: Juha Kautto <juha at xfce.org>
Date: Mon Nov 4 15:38:33 2013 +0200
4.6.9.3 Fixed bug 10108 g_free is called on two strdup allocations
Replaced strdup with g_strdup for consistency if nothing else.
Thanks to the patch from Steven Jackson
configure.in.in | 2 +-
src/interface.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/configure.in.in b/configure.in.in
index 6e1c789..2c160cf 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -9,7 +9,7 @@ dnl Written for Xfce by Juha Kautto <juha at xfce.org>
dnl
dnl Version information
-m4_define([orage_version], [4.9.6.2-git])
+m4_define([orage_version], [4.9.6.3-git])
m4_define([gtk_minimum_version], [2.14.0])
m4_define([xfce_minimum_version], [4.8.0])
diff --git a/src/interface.c b/src/interface.c
index 72107e3..b3c623c 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -126,7 +126,7 @@ static void orage_file_save_button_clicked(GtkButton *button
gchar *s;
gboolean ok = TRUE;
- s = strdup(gtk_entry_get_text(GTK_ENTRY(intf_w->orage_file_entry)));
+ s = g_strdup(gtk_entry_get_text(GTK_ENTRY(intf_w->orage_file_entry)));
if (gtk_toggle_button_get_active(
GTK_TOGGLE_BUTTON(intf_w->orage_file_rename_rb))) {
if (!g_file_test(s, G_FILE_TEST_EXISTS)) {
@@ -194,7 +194,7 @@ static void archive_file_save_button_clicked(GtkButton *button
gchar *s;
gboolean ok = TRUE;
- s = strdup(gtk_entry_get_text(GTK_ENTRY(intf_w->archive_file_entry)));
+ s = g_strdup(gtk_entry_get_text(GTK_ENTRY(intf_w->archive_file_entry)));
if (gtk_toggle_button_get_active(
GTK_TOGGLE_BUTTON(intf_w->archive_file_rename_rb))) {
if (!g_file_test(s, G_FILE_TEST_EXISTS)) {
More information about the Xfce4-commits
mailing list