aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window-commands.c')
-rw-r--r--src/window-commands.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index b111ef50f..e4dcac9d5 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -915,7 +915,7 @@ window_cmd_load_location (GtkAction *action,
EphyWindow *window)
{
Toolbar *toolbar;
- char *location;
+ const char *location;
toolbar = ephy_window_get_toolbar (window);
location = toolbar_get_location (toolbar);
@@ -923,7 +923,6 @@ window_cmd_load_location (GtkAction *action,
if (location)
{
ephy_window_load_url (window, location);
- g_free (location);
}
}