[grisbi-cvs] [SCM] grisbi branch, pbiava_new_historique_tab, updated. upstream_version_0_7_4-63-g0252318
Pierre Biava
nobody at users.sourceforge.net
Wed Oct 27 20:14:29 CEST 2010
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grisbi".
The branch, pbiava_new_historique_tab has been updated
via 02523182bb2ad7342e471e9e88dcac604511d6a2 (commit)
via 36f93e552a5e3c3683f3e086366cd17cdf1db1f3 (commit)
from 2de79f2341d27cfa274814f628b6c220c195d745 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 02523182bb2ad7342e471e9e88dcac604511d6a2
Author: pbiava <pierre.biava at nerim.net>
Date: Wed Oct 27 20:07:27 2010 +0200
fixes a crash risk
commit 36f93e552a5e3c3683f3e086366cd17cdf1db1f3
Author: pbiava <pierre.biava at nerim.net>
Date: Wed Oct 27 19:43:22 2010 +0200
fixes memory leak
-----------------------------------------------------------------------
Changes:
diff --git a/src/gsb_file.c b/src/gsb_file.c
index d6b9e25..12f6849 100644
--- a/src/gsb_file.c
+++ b/src/gsb_file.c
@@ -1043,7 +1043,10 @@ void gsb_file_append_name_to_opened_list ( gchar * path_fichier )
{
/* si ce fichier est déjà le dernier ouvert, on laisse tomber */
if ( !i )
+ {
+ g_free ( real_name );
return;
+ }
position = i;
}
@@ -1062,6 +1065,7 @@ void gsb_file_append_name_to_opened_list ( gchar * path_fichier )
tab_noms_derniers_fichiers_ouverts[0] = my_strdup ( "<no file>" );
affiche_derniers_fichiers_ouverts ( );
+ g_free ( real_name );
return;
}
diff --git a/src/main.c b/src/main.c
index f0fed99..bd574a2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -772,6 +772,8 @@ gboolean gsb_main_set_grisbi_title ( gint account_number )
if ( titre && strlen ( titre ) > 0 )
{
titre_grisbi = g_strconcat ( titre, " - ", _("Grisbi"), NULL );
+ g_free ( titre );
+
return_value = TRUE;
}
else
@@ -784,9 +786,6 @@ gboolean gsb_main_set_grisbi_title ( gint account_number )
gsb_main_page_update_homepage_title ( titre_grisbi );
- if ( titre && strlen ( titre ) )
- g_free ( titre );
-
if ( titre_grisbi && strlen ( titre_grisbi ) > 0 )
g_free ( titre_grisbi );
hooks/post-receive
--
grisbi
More information about the cvs
mailing list