# HG changeset patch # User ib # Date 1367235955 0 # Node ID 6e0e3d0a36c0c2d9ca8f6df7247eb3b7d356fcec # Parent d3e8f4f71514558b77d8ed41300a88cd3f9f74e5 Don't strdup the URL. It's already an allocated string, so simply assign it. Additionally, without using gstrdup() we don't need to include string.h. diff -r d3e8f4f71514 -r 6e0e3d0a36c0 gui/dialog/url.c --- a/gui/dialog/url.c Mon Apr 29 11:36:53 2013 +0000 +++ b/gui/dialog/url.c Mon Apr 29 11:45:55 2013 +0000 @@ -28,7 +28,6 @@ #include "gui/app/gui.h" #include "gui/ui/actions.h" #include "gui/util/list.h" -#include "gui/util/string.h" #include "help_mp.h" #include "stream/stream.h" @@ -63,7 +62,7 @@ if (str) { item = calloc(1, sizeof(urlItem)); - item->url = gstrdup(str); + item->url = str; listMgr(URLLIST_ITEM_ADD, item); uiSetFile(NULL, str, STREAMTYPE_STREAM);