Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Apr 13, 2024
1 parent ecf3715 commit 5e74156
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 0 additions & 8 deletions gplaces.c
Original file line number Diff line number Diff line change
Expand Up @@ -1467,17 +1467,9 @@ static SelectorList navigate(const Selector *sel, URL *url) {
}

if (SIMPLEQ_EMPTY(&new)) return new;
#ifdef GPLACES_WITH_TITAN
if (color && url->proto != &titan) history_push(url->url, new, "\33[35m%s>\33[0m ", url->url + off + 3);
else if (url->proto != &titan) history_push(url->url, new, "%s> ", url->url + off + 3);
#else
if (color) history_push(url->url, new, "\33[35m%s>\33[0m ", url->url + off + 3);
else history_push(url->url, new, "%s> ", url->url + off + 3);
#endif
if (interactive) page_gemtext(new);
#ifdef GPLACES_WITH_TITAN
if (url->proto == &titan) free_selectors(&new);
#endif
return new;

handle:
Expand Down
1 change: 1 addition & 0 deletions titan.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ static void *titan_upload(const Selector *sel, URL *url, char **mime, Parser *pa
if (params.stbuf.st_size > 0) munmap(params.body, params.stbuf.st_size);
close(fd);
free(params.token);
if (path != fragment) free(path);
#ifdef GPLACES_USE_LIBMAGIC
if (mag != NULL) magic_close(mag);
#else
Expand Down

0 comments on commit 5e74156

Please sign in to comment.