aboutsummaryrefslogtreecommitdiffstats
path: root/ui/help_url.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/help_url.c')
-rw-r--r--ui/help_url.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/help_url.c b/ui/help_url.c
index c34ce121bc..9a30f93a38 100644
--- a/ui/help_url.c
+++ b/ui/help_url.c
@@ -135,10 +135,9 @@ user_guide_url(const gchar *page) {
utf_8to16(url->str),
HH_DISPLAY_TOPIC, 0);
- g_string_free(url, TRUE /* free_segment */);
-
/* if the .chm file could be opened, stop here */
if(hw != NULL) {
+ g_string_free(url, TRUE /* free_segment */);
return NULL;
}
#endif /* HHC_DIR */