Changeset ddbbcffa for text.c


Ignore:
Timestamp:
Feb 11, 2011, 4:31:42 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, 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
  • text.c

    r35b6eb9 rddbbcffa  
    66
    77/* Returns a copy of 'in' with each line indented 'n'
    8  * characters. Result must be freed with owl_free. */
     8 * characters. Result must be freed with g_free. */
    99char *owl_text_indent(const char *in, int n)
    1010{
     
    107107
    108108  out2=owl_text_substitute(out, "&lt;", "<");
    109   owl_free(out);
     109  g_free(out);
    110110  out=owl_text_substitute(out2, "&gt;", ">");
    111   owl_free(out2);
     111  g_free(out2);
    112112  out2=owl_text_substitute(out, "&amp;", "&");
    113   owl_free(out);
     113  g_free(out);
    114114  out=owl_text_substitute(out2, "&quot;", "\"");
    115   owl_free(out2);
     115  g_free(out2);
    116116  out2=owl_text_substitute(out, "&nbsp;", " ");
    117   owl_free(out);
     117  g_free(out);
    118118  out=owl_text_substitute(out2, "&ensp;", "  ");
    119   owl_free(out2);
     119  g_free(out2);
    120120  out2=owl_text_substitute(out, "&emsp;", "   ");
    121   owl_free(out);
     121  g_free(out);
    122122  out=owl_text_substitute(out2, "&endash;", "--");
    123   owl_free(out2);
     123  g_free(out2);
    124124  out2=owl_text_substitute(out, "&emdash;", "---");
    125   owl_free(out);
     125  g_free(out);
    126126
    127127  return(out2);
Note: See TracChangeset for help on using the changeset viewer.