Changeset ddbbcffa for global.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
  • global.c

    r96828e4 rddbbcffa  
    9696  cd = owl_sprintf("%s/%s", g->homedir, OWL_CONFIG_DIR);
    9797  owl_global_set_confdir(g, cd);
    98   owl_free(cd);
     98  g_free(cd);
    9999
    100100  owl_messagelist_create(&(g->msglist));
     
    379379 */
    380380void owl_global_set_confdir(owl_global *g, const char *cd) {
    381   owl_free(g->confdir);
     381  g_free(g->confdir);
    382382  g->confdir = owl_strdup(cd);
    383   owl_free(g->startupfile);
     383  g_free(g->startupfile);
    384384  g->startupfile = owl_sprintf("%s/startup", cd);
    385385}
     
    528528
    529529void owl_global_set_startupargs(owl_global *g, int argc, char **argv) {
    530   if (g->startupargs) owl_free(g->startupargs);
     530  if (g->startupargs) g_free(g->startupargs);
    531531  g->startupargs = g_strjoinv(" ", argv);
    532532}
     
    564564  e->g->filterlist = g_list_remove(e->g->filterlist, e->f);
    565565  owl_filter_delete(e->f);
    566   owl_free(e);
     566  g_free(e);
    567567}
    568568
     
    699699  char *sn_escaped;
    700700  g->aim_loggedin=1;
    701   if (g->aim_screenname) owl_free(g->aim_screenname);
    702   if (g->aim_screenname_for_filters) owl_free(g->aim_screenname_for_filters);
     701  if (g->aim_screenname) g_free(g->aim_screenname);
     702  if (g->aim_screenname_for_filters) g_free(g->aim_screenname_for_filters);
    703703  g->aim_screenname=owl_strdup(screenname);
    704704  sn_escaped = owl_text_quote(screenname, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH);
    705705  g->aim_screenname_for_filters = owl_arg_quote(sn_escaped);
    706   owl_free(sn_escaped);
     706  g_free(sn_escaped);
    707707}
    708708
     
    967967    path = owl_sprintf("%s.%d", filename, getpid());
    968968    fd = open(path, O_CREAT|O_WRONLY|O_EXCL, 0600);
    969     owl_free(path);
     969    g_free(path);
    970970
    971971    if (fd >= 0)
    972972      g->debug_file = fdopen(fd, "a");
    973973
    974     owl_free(open_file);
     974    g_free(open_file);
    975975    open_file = owl_strdup(filename);
    976976  }
Note: See TracChangeset for help on using the changeset viewer.