Fixed a memleak in the file dialog.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sun, 22 Apr 2007 15:14:12 +0000 (17:14 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 22 Apr 2007 15:14:12 +0000 (17:14 +0200)
src/rakt-window.c

index 1ada22c1534c51fbe0c9b31c1079253625c70ae6..dbd3c78f8396e3315717edae16364b27a27eca18 100644 (file)
@@ -312,6 +312,7 @@ on_action_open (GtkAction *action, RaktWindow *window)
 
                file = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog));
                open_document (window, file);
 
                file = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog));
                open_document (window, file);
+               g_free (file);
        }
 
        gtk_widget_destroy (dialog);
        }
 
        gtk_widget_destroy (dialog);