changeset 1295:13e68fb13744

[gaim-migrate @ 1305] should work with TOC now committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 18 Dec 2000 23:13:45 +0000
parents 7f486375bfd5
children 11e5b1220028
files plugins/lagmeter.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/lagmeter.c	Mon Dec 18 22:56:13 2000 +0000
+++ b/plugins/lagmeter.c	Mon Dec 18 23:13:45 2000 +0000
@@ -100,7 +100,9 @@
 static gint send_lag(struct gaim_connection *gc) {
 	gettimeofday(&my_lag_tv, NULL);
 	if (g_slist_find(connections, gc)) {
-		serv_send_im(gc, gc->username, MY_LAG_STRING, 1);
+		char *m = g_strdup(MY_LAG_STRING);
+		serv_send_im(gc, gc->username, m, 1);
+		g_free(m);
 		return TRUE;
 	} else {
 		debug_printf("LAGMETER: send_lag called for connection that no longer exists\n");