aboutsummaryrefslogtreecommitdiffstats
path: root/skype/skype.c
diff options
context:
space:
mode:
authorVMiklos <vmiklos@frugalware.org>2007-09-04 00:22:55 +0200
committerVMiklos <vmiklos@frugalware.org>2007-09-04 00:22:55 +0200
commit761367025bcb4a711f07715a91076769a3297531 (patch)
treebb0ab099d44587c12ebc1c833f09215d47236b8d /skype/skype.c
parent02a531b69a273c4ead692d18b24b3d7c953996e6 (diff)
handle the case when the input is a multiline message
Diffstat (limited to 'skype/skype.c')
-rw-r--r--skype/skype.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/skype/skype.c b/skype/skype.c
index 2d4e8676..7dfd3a26 100644
--- a/skype/skype.c
+++ b/skype/skype.c
@@ -260,6 +260,7 @@ static gboolean skype_read_callback( gpointer data, gint fd, b_input_condition c
* it, then we can later use it
* when we got the message's
* body. */
+ g_free(sd->handle);
sd->handle = g_strdup_printf("%s@skype.com", info);
}
else if(!strncmp(info, "BODY ", 5))
@@ -269,8 +270,6 @@ static gboolean skype_read_callback( gpointer data, gint fd, b_input_condition c
{
/* New body, we have everything to use imcb_buddy_msg() now! */
imcb_buddy_msg(ic, sd->handle, info, 0, 0);
- g_free(sd->handle);
- sd->handle = NULL;
}
}
}
@@ -379,6 +378,7 @@ static void skype_logout( struct im_connection *ic )
g_free(buf);
g_free(sd->username);
+ g_free(sd->handle);
g_free(sd);
ic->proto_data = NULL;
}