[MPlayer-cvslog] r36180 - trunk/gui/dialog/url.c
ib
subversion at mplayerhq.hu
Mon Apr 29 13:45:56 CEST 2013
Author: ib
Date: Mon Apr 29 13:45:55 2013
New Revision: 36180
Log:
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.
Modified:
trunk/gui/dialog/url.c
Modified: trunk/gui/dialog/url.c
==============================================================================
--- trunk/gui/dialog/url.c Mon Apr 29 13:36:53 2013 (r36179)
+++ trunk/gui/dialog/url.c Mon Apr 29 13:45:55 2013 (r36180)
@@ -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 @@ static void button_clicked(GtkButton *bu
if (str) {
item = calloc(1, sizeof(urlItem));
- item->url = gstrdup(str);
+ item->url = str;
listMgr(URLLIST_ITEM_ADD, item);
uiSetFile(NULL, str, STREAMTYPE_STREAM);
More information about the MPlayer-cvslog
mailing list