]> www.fi.muni.cz Git - evince.git/commitdiff
Plugged memory leak.
authorHiroyuki Ikezoe <poincare@ikezoe.net>
Tue, 31 Jul 2007 05:46:15 +0000 (05:46 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Tue, 31 Jul 2007 05:46:15 +0000 (05:46 +0000)
2007-07-31  Hiroyuki Ikezoe  <poincare@ikezoe.net>

* shell/ev-window.c: (file_open_dialog_response_cb): Plugged memory
leak.

svn path=/trunk/; revision=2605

ChangeLog
shell/ev-window.c

index cc5334168edfb6b3f63efc35bf657eefb54d0512..ef337bf4ce298a2714046b45d1b99adb212178ef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-31  Hiroyuki Ikezoe  <poincare@ikezoe.net>
+
+       * shell/ev-window.c: (file_open_dialog_response_cb): Plugged memory
+       leak.
+
 2007-07-30  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * configure.ac:
index 99758209c77fa3c3007bcb80a40267777711b111..d3787180f9bc97e37053a16d11de230e94cc059e 100644 (file)
@@ -1506,6 +1506,8 @@ file_open_dialog_response_cb (GtkWidget *chooser,
                              gint       response_id,
                              EvWindow  *ev_window)
 {
+       gchar *uri;
+
        if (response_id == GTK_RESPONSE_OK) {
                GSList *uris;
 
@@ -1518,8 +1520,10 @@ file_open_dialog_response_cb (GtkWidget *chooser,
                g_slist_foreach (uris, (GFunc)g_free, NULL);    
                g_slist_free (uris);
        }
-       ev_application_set_chooser_uri (EV_APP, 
-                                       gtk_file_chooser_get_uri (GTK_FILE_CHOOSER (chooser)));
+
+       uri = gtk_file_chooser_get_uri (GTK_FILE_CHOOSER (chooser));
+       ev_application_set_chooser_uri (EV_APP, uri);
+       g_free (uri);
 
        gtk_widget_destroy (chooser);
 }