[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_9_1-26-g42d8909

Pierre Biava nobody at users.sourceforge.net
Mon May 2 22:52:50 CEST 2011


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, master has been updated
       via  42d89090110bab2e34ba06ad19adf3365668998e (commit)
      from  43574d906e2a7ab2ed476a1c92e013319e25fe3f (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 42d89090110bab2e34ba06ad19adf3365668998e
Author: pbiava <pierre.biava at nerim.net>
Date:   Mon May 2 22:50:49 2011 +0200

    Fix memory leak in help.c

-----------------------------------------------------------------------

Changes:
diff --git a/src/help.c b/src/help.c
index e8528b9..315552e 100644
--- a/src/help.c
+++ b/src/help.c
@@ -84,7 +84,8 @@ void launch_mailto (GtkAboutDialog *about, const gchar * link, gpointer data)
  */
 void a_propos ( GtkWidget *bouton, gint data )
 {
-    GdkPixbuf * logo;
+    GtkWidget *about;
+    GdkPixbuf *logo;
     gchar *chemin_logo ;
 
 #define CSUFFIX "\n"
@@ -156,29 +157,38 @@ NULL};
                         "This product includes software developed by the OpenSSL Project "
                         "for use in the OpenSSL Toolkit.\n(http://www.openssl.org/)";
 
-    /* Plugins list */
-    gchar* comments = g_strconcat ( _("Personal finance manager for everyone\n"),
-                        gsb_plugin_get_list(),
+    /* Others info */
+    gchar *comments;
+    gchar *plugins;
+    gchar *version_to_string;
+    gchar *compiled_time;
+
+    plugins = gsb_plugin_get_list ( );
+    version_to_string = get_gtk_run_version ( );
+    compiled_time = gsb_date_get_compiled_time ( );
+
+    comments = g_strconcat ( _("Personal finance manager for everyone\n"),
+                        plugins,
                         "\nVersion de GTK : ",
-                        get_gtk_run_version ( ),
+                        version_to_string,
                         "\n",
                         _("This instance of Grisbi was compiled on\n"),
-                        gsb_date_get_compiled_time ( ) ,
+                        compiled_time,
                         " ",
                         _("at"),
                         " ",
                         __TIME__,
                         NULL );
-
-    GtkWidget * about;
-
     /* Logo */
     logo = gsb_select_icon_get_logo_pixbuf ( );
     if (logo == NULL )
     {
         chemin_logo = my_strdup ( LOGO_PATH );
         logo =  gdk_pixbuf_new_from_file ( chemin_logo, NULL );
+
+        g_free ( chemin_logo );
     }
+
     about = gtk_about_dialog_new ( );
     gtk_about_dialog_set_url_hook (launch_url, NULL, NULL);
     gtk_about_dialog_set_email_hook (launch_mailto, NULL, NULL);
@@ -199,6 +209,11 @@ NULL};
     gtk_window_set_modal ( GTK_WINDOW ( about ), TRUE );
     gtk_window_set_transient_for ( GTK_WINDOW ( about ), GTK_WINDOW ( run.window ) );
 
+    g_free ( plugins );
+    g_free ( version_to_string );
+    g_free ( compiled_time );
+    g_free ( comments );
+
     gtk_dialog_run ( GTK_DIALOG (about)) ;
 
     gtk_widget_destroy (about);


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list