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

    r96828e4 rddbbcffa  
    12471247  filename=owl_util_makepath(argv[1]);
    12481248  owl_function_dump(filename);
    1249   owl_free(filename);
     1249  g_free(filename);
    12501250  return(NULL);
    12511251}
     
    12881288  }
    12891289  owl_function_nextmsg_full(filter, skip_deleted, last_if_none);
    1290   if (filter) owl_free(filter);
     1290  if (filter) g_free(filter);
    12911291  return(NULL);
    12921292}
     
    13181318  }
    13191319  owl_function_prevmsg_full(filter, skip_deleted, first_if_none);
    1320   if (filter) owl_free(filter);
     1320  if (filter) g_free(filter);
    13211321  return(NULL);
    13221322}
     
    13571357  if (filtname) {
    13581358    owl_function_change_currentview_filter(filtname);
    1359     owl_free(filtname);
     1359    g_free(filtname);
    13601360  }
    13611361
    13621362done:
    1363   owl_free(tmp_argv);
     1363  g_free(tmp_argv);
    13641364
    13651365  return NULL;
     
    16831683      } else if (newbuff[i] != ' ') {
    16841684        owl_function_makemsg("Invalid arguments to 'multi' command.");   
    1685         owl_free(newbuff);
     1685        g_free(newbuff);
    16861686        return NULL;
    16871687      }
     
    16911691  for (i = 0; commands[i] != NULL; i++) {
    16921692    if (lastrv) {
    1693       owl_free(lastrv);
     1693      g_free(lastrv);
    16941694    }
    16951695    lastrv = owl_function_command(commands[i]);
    16961696  }
    1697   owl_free(newbuff);
     1697  g_free(newbuff);
    16981698  g_strfreev(commands);
    16991699  return lastrv;
     
    20172017 err:
    20182018  g_string_free(recip, true);
    2019   owl_free(message);
     2019  g_free(message);
    20202020  return NULL;
    20212021}
     
    21042104      foo=owl_function_create_negative_filter(owl_view_get_filtname(owl_global_get_current_view(&g)));
    21052105      owl_function_change_currentview_filter(foo);
    2106       owl_free(foo);
     2106      g_free(foo);
    21072107      return(NULL);
    21082108    }
     
    21292129    owl_function_create_filter(argc, myargv);
    21302130    owl_function_change_currentview_filter("owl-dynamic");
    2131     owl_free(myargv);
     2131    g_free(myargv);
    21322132    return NULL;
    21332133  }
     
    22642264  if (filtname) {
    22652265    owl_function_change_currentview_filter(filtname);
    2266     owl_free(filtname);
     2266    g_free(filtname);
    22672267  }
    22682268  return NULL;
     
    22792279  longuser = long_zuser(argv[1]);
    22802280  filtname = owl_function_zuserfilt(longuser);
    2281   owl_free(longuser);
     2281  g_free(longuser);
    22822282  if (filtname) {
    22832283    owl_function_change_currentview_filter(filtname);
    2284     owl_free(filtname);
     2284    g_free(filtname);
    22852285  }
    22862286  return NULL;
     
    23832383  if (filtname) {
    23842384    (void) owl_function_color_filter(filtname, argv[2], (argc == 4 ? argv[3] : NULL));
    2385     owl_free(filtname);
     2385    g_free(filtname);
    23862386  }
    23872387  return NULL;
     
    24862486    text = owl_string_build_quoted("filter %q", argv[1]);
    24872487    owl_function_punt(text, unpunt);
    2488     owl_free(text);
     2488    g_free(text);
    24892489  } else {
    24902490    owl_function_punt(skiptokens(buff, 1), unpunt);
     
    25762576  if (argc==2) {
    25772577    owl_editwin *e = owl_function_start_password("AIM Password: ");
    2578     owl_editwin_set_cbdata(e, owl_strdup(argv[1]), owl_free);
     2578    owl_editwin_set_cbdata(e, owl_strdup(argv[1]), g_free);
    25792579    owl_editwin_set_callback(e, owl_callback_aimlogin);
    25802580    return(NULL);
Note: See TracChangeset for help on using the changeset viewer.