Changeset ddbbcffa for fmtext.c


Ignore:
Timestamp:
Feb 11, 2011, 4:31:42 PM (13 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
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)
Message:
Replace owl_free with g_free.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Karl Ramm <kcr@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fmtext.c

    r96828e4 rddbbcffa  
    7373    return;
    7474  owl_fmtext_append_attr(f, buff, OWL_FMTEXT_ATTR_NONE, OWL_COLOR_DEFAULT, OWL_COLOR_DEFAULT);
    75   owl_free(buff);
     75  g_free(buff);
    7676}
    7777
     
    644644      buff[ptr-txtptr]='\0';
    645645      owl_fmtext_append_attr(f, buff, curattrs, curcolor, OWL_COLOR_DEFAULT);
    646       owl_free(buff);
     646      g_free(buff);
    647647
    648648      /* update pointer to point at the @ */
     
    685685        curattrs|=OWL_FMTEXT_ATTR_BOLD;
    686686        txtptr+=6;
    687         owl_free(buff);
     687        g_free(buff);
    688688        continue;
    689689      } else if (!strcasecmp(buff, "@b")) {
     
    694694        curattrs|=OWL_FMTEXT_ATTR_BOLD;
    695695        txtptr+=3;
    696         owl_free(buff);
     696        g_free(buff);
    697697        continue;
    698698      } else if (!strcasecmp(buff, "@i")) {
     
    703703        curattrs|=OWL_FMTEXT_ATTR_UNDERLINE;
    704704        txtptr+=3;
    705         owl_free(buff);
     705        g_free(buff);
    706706        continue;
    707707      } else if (!strcasecmp(buff, "@italic")) {
     
    712712        curattrs|=OWL_FMTEXT_ATTR_UNDERLINE;
    713713        txtptr+=8;
    714         owl_free(buff);
     714        g_free(buff);
    715715        continue;
    716716      } else if (!strcasecmp(buff, "@")) {
     
    720720        stacksize++;
    721721        txtptr+=2;
    722         owl_free(buff);
     722        g_free(buff);
    723723        continue;
    724724
     
    728728                 && owl_global_get_hascolors(&g)
    729729                 && owl_global_is_colorztext(&g)) {
    730         owl_free(buff);
     730        g_free(buff);
    731731        txtptr+=7;
    732732        tmpptr=strpbrk(txtptr, "@{[<()>]}");
     
    746746          if (curcolor == OWL_COLOR_INVALID)
    747747              curcolor = OWL_COLOR_DEFAULT;
    748           owl_free(buff);
     748          g_free(buff);
    749749          txtptr=tmpptr+1;
    750750          continue;
     
    769769      buff[ptr-txtptr]='\0';
    770770      owl_fmtext_append_attr(f, buff, curattrs, curcolor, OWL_COLOR_DEFAULT);
    771       owl_free(buff);
     771      g_free(buff);
    772772
    773773      /* now deal with the closer */
     
    780780        buff[1]='\0';
    781781        owl_fmtext_append_attr(f, buff, curattrs, curcolor, OWL_COLOR_DEFAULT);
    782         owl_free(buff);
     782        g_free(buff);
    783783        txtptr++;
    784784        continue;
     
    806806        buff[1]='\0';
    807807        owl_fmtext_append_attr(f, buff, curattrs, curcolor, OWL_COLOR_DEFAULT);
    808         owl_free(buff);
     808        g_free(buff);
    809809        txtptr++;
    810810        continue;
     
    816816      buff[ptr-txtptr+1]='\0';
    817817      owl_fmtext_append_attr(f, buff, curattrs, curcolor, OWL_COLOR_DEFAULT);
    818       owl_free(buff);
     818      g_free(buff);
    819819      txtptr=ptr+1;
    820820      continue;
     
    840840      if (text) {
    841841        owl_fmtext_append_normal(f, text);
    842         owl_free(text);
     842        g_free(text);
    843843      }
    844844    } else if (elem) {
Note: See TracChangeset for help on using the changeset viewer.