eog r4916 - in trunk: . src



Author: friemann
Date: Tue Dec 23 21:02:20 2008
New Revision: 4916
URL: http://svn.gnome.org/viewvc/eog?rev=4916&view=rev

Log:
2008-12-23  Felix Riemann  <friemann svn gnome org>

	* src/eog-util.c: (eog_util_show_help): Fix leaky string handling.


Modified:
   trunk/ChangeLog
   trunk/src/eog-util.c

Modified: trunk/src/eog-util.c
==============================================================================
--- trunk/src/eog-util.c	(original)
+++ trunk/src/eog-util.c	Tue Dec 23 21:02:20 2008
@@ -48,14 +48,15 @@
 eog_util_show_help (const gchar *section, GtkWindow *parent)
 {
 	GError *error = NULL;
-	char *uri;
+	gchar *uri = NULL;
 
 	if (section)
 		uri = g_strdup_printf ("ghelp:eog?%s", section);
-	else
-		uri = "ghelp:eog";
 
-	gtk_show_uri (NULL, uri, gtk_get_current_event_time (), &error);
+	gtk_show_uri (NULL, ((uri != NULL) ? uri : "ghelp:eog"),
+		      gtk_get_current_event_time (), &error);
+
+	g_free (uri);
 
 	if (error) {
 		GtkWidget *dialog;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]