Mercurial > pidgin.yaz
comparison src/conversation.c @ 796:4783a3b6859d
[gaim-migrate @ 806]
stupid leaks
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 30 Aug 2000 03:49:00 +0000 |
parents | b4071be71eb4 |
children | 1a47432e2ba1 |
comparison
equal
deleted
inserted
replaced
795:b4071be71eb4 | 796:4783a3b6859d |
---|---|
533 | 533 |
534 buf2 = gtk_editable_get_chars(GTK_EDITABLE(c->entry), 0, -1); | 534 buf2 = gtk_editable_get_chars(GTK_EDITABLE(c->entry), 0, -1); |
535 g_snprintf(buf, limit, "%s", buf2); | 535 g_snprintf(buf, limit, "%s", buf2); |
536 g_free(buf2); | 536 g_free(buf2); |
537 gtk_editable_delete_text(GTK_EDITABLE(c->entry), 0, -1); | 537 gtk_editable_delete_text(GTK_EDITABLE(c->entry), 0, -1); |
538 if (!strlen(buf)) return; | 538 if (!strlen(buf)) { |
539 g_free(buf); | |
540 return; | |
541 } | |
539 | 542 |
540 if (general_options & OPT_GEN_SEND_LINKS) | 543 if (general_options & OPT_GEN_SEND_LINKS) |
541 linkify_text(buf); | 544 linkify_text(buf); |
542 | 545 |
543 buf2 = g_malloc(limit); | 546 buf2 = g_malloc(limit); |
590 char *buffy = g_strdup(buf); | 593 char *buffy = g_strdup(buf); |
591 enum gaim_event evnt = c->is_chat ? event_chat_send : event_im_send; | 594 enum gaim_event evnt = c->is_chat ? event_chat_send : event_im_send; |
592 plugin_event(evnt, c->name, &buffy, 0); | 595 plugin_event(evnt, c->name, &buffy, 0); |
593 if (!buffy) { | 596 if (!buffy) { |
594 g_free(buf2); | 597 g_free(buf2); |
598 g_free(buf); | |
595 return; | 599 return; |
596 } | 600 } |
597 g_snprintf(buf, limit, "%s", buffy); | 601 g_snprintf(buf, limit, "%s", buffy); |
598 g_free(buffy); | 602 g_free(buffy); |
599 } | 603 } |
627 if ((general_options & OPT_GEN_BACK_ON_IM) && awaymessage != NULL) { | 631 if ((general_options & OPT_GEN_BACK_ON_IM) && awaymessage != NULL) { |
628 do_im_back(); | 632 do_im_back(); |
629 } | 633 } |
630 | 634 |
631 gtk_widget_grab_focus(c->entry); | 635 gtk_widget_grab_focus(c->entry); |
636 g_free(buf2); | |
637 g_free(buf); | |
632 } | 638 } |
633 | 639 |
634 static int | 640 static int |
635 entry_key_pressed(GtkWidget *w, GtkWidget *entry) | 641 entry_key_pressed(GtkWidget *w, GtkWidget *entry) |
636 { | 642 { |