Changeset 96828e4 for aim.c


Ignore:
Timestamp:
Feb 11, 2011, 4:31:33 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
35b6eb9
Parents:
9518a85
git-author:
Anders Kaseorg <andersk@mit.edu> (08/27/09 00:51:45)
git-committer:
Anders Kaseorg <andersk@mit.edu> (02/11/11 16:31:33)
Message:
Replace owl_malloc with g_new and g_new0.

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

Legend:

Unmodified
Added
Removed
  • aim.c

    rc6adf17 r96828e4  
    134134 
    135135  /* this will leak, I know and just don't care right now */
    136   priv=owl_malloc(sizeof(struct owlfaim_priv));
    137   memset(priv, 0, sizeof(struct owlfaim_priv));
     136  priv=g_new0(struct owlfaim_priv, 1);
    138137
    139138  priv->screenname = owl_strdup(screenname);
     
    435434
    436435  j=strlen(in);
    437   out=owl_malloc(j+30);
     436  out=g_new(char, j+30);
    438437  k=0;
    439438  for (i=0; i<j; i++) {
     
    10461045  wrapmsg=owl_text_wordwrap(stripmsg, 70);
    10471046  nz_screenname=owl_aim_normalize_screenname(userinfo->sn);
    1048   m=owl_malloc(sizeof(owl_message));
     1047  m=g_new(owl_message, 1);
    10491048  owl_message_create_aim(m,
    10501049                         nz_screenname,
Note: See TracChangeset for help on using the changeset viewer.