Changeset 23b6c11


Ignore:
Timestamp:
Jul 14, 2010, 12:38:17 AM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
3f11c00
Parents:
0be3efd
Message:
Use owl_{strdup,free} instead of g_{strdup,free}

For consistency. Also, the strdup wrappers already handle NULL.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • msgwin.c

    r521e600 r23b6c11  
    2424void owl_msgwin_set_text(owl_msgwin *msgwin, const char *msg)
    2525{
    26   owl_msgwin_set_text_nocopy(msgwin, msg ? g_strdup(msg) : NULL);
     26  owl_msgwin_set_text_nocopy(msgwin, owl_strdup(msg));
    2727}
    2828
    2929void owl_msgwin_set_text_nocopy(owl_msgwin *msgwin, char *msg)
    3030{
    31   g_free(msgwin->msg);
     31  owl_free(msgwin->msg);
    3232  msgwin->msg = msg;
    3333  owl_window_dirty(msgwin->window);
     
    3636void owl_msgwin_cleanup(owl_msgwin *msgwin)
    3737{
    38   g_free(msgwin->msg);
     38  owl_free(msgwin->msg);
    3939  msgwin->msg = NULL;
    4040  if (msgwin->window) {
Note: See TracChangeset for help on using the changeset viewer.