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 1ada22c..dbd3c78 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);
+               g_free (file);
        }
 
        gtk_widget_destroy (dialog);