aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2008-02-29 01:59:51 +0100
committerMiklos Vajna <vmiklos@frugalware.org>2008-02-29 01:59:51 +0100
commit9fd72022b3410118c7ee484016f6321c36268ea8 (patch)
treea9e5852dd22065256bc26f8f02819a71d9255c61
parent48181f05fef4c5c6624a06bcf5ce3648f63576dd (diff)
error out on cancelling a non-existing call
-rw-r--r--skype/skype.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/skype/skype.c b/skype/skype.c
index 291233e7..910e8ae6 100644
--- a/skype/skype.c
+++ b/skype/skype.c
@@ -978,6 +978,8 @@ static char *skype_set_call( set_t *set, char *value )
buf = g_strdup_printf("SET CALL %s STATUS FINISHED", sd->call_id);
skype_write( ic, buf, strlen( buf ) );
g_free(buf);
+ g_free(sd->call_id);
+ sd->call_id = NULL;
}
else
{