- Timestamp:
- Feb 11, 2011, 4:31:42 PM (13 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- d4927a7
- Parents:
- 35b6eb9
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/27/09 00:52:41)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (02/11/11 16:31:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fmtext.c
r96828e4 rddbbcffa 73 73 return; 74 74 owl_fmtext_append_attr(f, buff, OWL_FMTEXT_ATTR_NONE, OWL_COLOR_DEFAULT, OWL_COLOR_DEFAULT); 75 owl_free(buff);75 g_free(buff); 76 76 } 77 77 … … 644 644 buff[ptr-txtptr]='\0'; 645 645 owl_fmtext_append_attr(f, buff, curattrs, curcolor, OWL_COLOR_DEFAULT); 646 owl_free(buff);646 g_free(buff); 647 647 648 648 /* update pointer to point at the @ */ … … 685 685 curattrs|=OWL_FMTEXT_ATTR_BOLD; 686 686 txtptr+=6; 687 owl_free(buff);687 g_free(buff); 688 688 continue; 689 689 } else if (!strcasecmp(buff, "@b")) { … … 694 694 curattrs|=OWL_FMTEXT_ATTR_BOLD; 695 695 txtptr+=3; 696 owl_free(buff);696 g_free(buff); 697 697 continue; 698 698 } else if (!strcasecmp(buff, "@i")) { … … 703 703 curattrs|=OWL_FMTEXT_ATTR_UNDERLINE; 704 704 txtptr+=3; 705 owl_free(buff);705 g_free(buff); 706 706 continue; 707 707 } else if (!strcasecmp(buff, "@italic")) { … … 712 712 curattrs|=OWL_FMTEXT_ATTR_UNDERLINE; 713 713 txtptr+=8; 714 owl_free(buff);714 g_free(buff); 715 715 continue; 716 716 } else if (!strcasecmp(buff, "@")) { … … 720 720 stacksize++; 721 721 txtptr+=2; 722 owl_free(buff);722 g_free(buff); 723 723 continue; 724 724 … … 728 728 && owl_global_get_hascolors(&g) 729 729 && owl_global_is_colorztext(&g)) { 730 owl_free(buff);730 g_free(buff); 731 731 txtptr+=7; 732 732 tmpptr=strpbrk(txtptr, "@{[<()>]}"); … … 746 746 if (curcolor == OWL_COLOR_INVALID) 747 747 curcolor = OWL_COLOR_DEFAULT; 748 owl_free(buff);748 g_free(buff); 749 749 txtptr=tmpptr+1; 750 750 continue; … … 769 769 buff[ptr-txtptr]='\0'; 770 770 owl_fmtext_append_attr(f, buff, curattrs, curcolor, OWL_COLOR_DEFAULT); 771 owl_free(buff);771 g_free(buff); 772 772 773 773 /* now deal with the closer */ … … 780 780 buff[1]='\0'; 781 781 owl_fmtext_append_attr(f, buff, curattrs, curcolor, OWL_COLOR_DEFAULT); 782 owl_free(buff);782 g_free(buff); 783 783 txtptr++; 784 784 continue; … … 806 806 buff[1]='\0'; 807 807 owl_fmtext_append_attr(f, buff, curattrs, curcolor, OWL_COLOR_DEFAULT); 808 owl_free(buff);808 g_free(buff); 809 809 txtptr++; 810 810 continue; … … 816 816 buff[ptr-txtptr+1]='\0'; 817 817 owl_fmtext_append_attr(f, buff, curattrs, curcolor, OWL_COLOR_DEFAULT); 818 owl_free(buff);818 g_free(buff); 819 819 txtptr=ptr+1; 820 820 continue; … … 840 840 if (text) { 841 841 owl_fmtext_append_normal(f, text); 842 owl_free(text);842 g_free(text); 843 843 } 844 844 } else if (elem) {
Note: See TracChangeset
for help on using the changeset viewer.