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

    r96828e4 rddbbcffa  
    3131    char *escape = owl_escape_highbit(str);
    3232    owl_function_error("Internal error! Non-UTF-8 string encountered:\n%s", escape);
    33     owl_free(escape);
     33    g_free(escape);
    3434  }
    3535  return ret;
     
    6969    (void)hv_store(ret, key, strlen(key), to_sv(element), 0);
    7070  }
    71   owl_list_cleanup(&l, owl_free);
     71  owl_list_cleanup(&l, g_free);
    7272
    7373  return ret;
     
    106106      ptr=owl_zephyr_get_field_as_utf8(owl_message_get_notice(m), i+1);
    107107      av_push(av_zfields, owl_new_sv(ptr));
    108       owl_free(ptr);
     108      g_free(ptr);
    109109    }
    110110    (void)hv_store(h, "fields", strlen("fields"), newRV_noinc((SV*)av_zfields), 0);
     
    159159  }
    160160  hr = sv_bless(hr,stash);
    161   owl_free(utype);
    162   owl_free(blessas);
     161  g_free(utype);
     162  g_free(blessas);
    163163  return hr;
    164164}
     
    407407  av_unshift(inc, 1);
    408408  av_store(inc, 0, owl_new_sv(path));
    409   owl_free(path);
     409  g_free(path);
    410410
    411411  eval_pv("use BarnOwl;", FALSE);
     
    464464                                           :"BarnOwl::_receive_msg_legacy_wrap", m);
    465465  }
    466   if (ptr) owl_free(ptr);
     466  if (ptr) g_free(ptr);
    467467}
    468468
     
    475475                                           :"BarnOwl::Hooks::_new_msg", m);
    476476  }
    477   if (ptr) owl_free(ptr);
     477  if (ptr) g_free(ptr);
    478478}
    479479
Note: See TracChangeset for help on using the changeset viewer.