pidgin: 70594956: There's no need to dup this
markdoliner at pidgin.im
markdoliner at pidgin.im
Sun Jun 15 21:10:43 EDT 2008
-----------------------------------------------------------------
Revision: 705949560fe813ff0ffc4170eb4ca7545d1bd4e4
Ancestor: 9e2358867e786b26132017b225710d5c9d230c5a
Author: markdoliner at pidgin.im
Date: 2008-06-12T16:09:58
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/705949560fe813ff0ffc4170eb4ca7545d1bd4e4
Modified files:
libpurple/protocols/simple/simple.c
ChangeLog:
There's no need to dup this
-------------- next part --------------
============================================================
--- libpurple/protocols/simple/simple.c 4fbf421e5979effa2357539f4fcb6778f09df7eb
+++ libpurple/protocols/simple/simple.c 168ad0960a4fb23715e11458957addd50d10c765
@@ -1898,7 +1898,7 @@ static void simple_login(PurpleAccount *
PurpleConnection *gc;
struct simple_account_data *sip;
gchar **userserver;
- gchar *hosttoconnect;
+ const gchar *hosttoconnect;
const char *username = purple_account_get_username(account);
gc = purple_account_get_connection(account);
@@ -1934,14 +1934,13 @@ static void simple_login(PurpleAccount *
sip->status = g_strdup("available");
if(!purple_account_get_bool(account, "useproxy", FALSE)) {
- hosttoconnect = g_strdup(sip->servername);
+ hosttoconnect = sip->servername;
} else {
- hosttoconnect = g_strdup(purple_account_get_string(account, "proxy", sip->servername));
+ hosttoconnect = purple_account_get_string(account, "proxy", sip->servername);
}
sip->srv_query_data = purple_srv_resolve("sip",
sip->udp ? "udp" : "tcp", hosttoconnect, srvresolved, sip);
- g_free(hosttoconnect);
}
static void simple_close(PurpleConnection *gc)
More information about the Commits
mailing list