Changeset ddbbcffa for commands.c
- Timestamp:
- Feb 11, 2011, 4:31:42 PM (14 years ago)
- Branches:
- master, release-1.10, 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
r96828e4 rddbbcffa 1247 1247 filename=owl_util_makepath(argv[1]); 1248 1248 owl_function_dump(filename); 1249 owl_free(filename);1249 g_free(filename); 1250 1250 return(NULL); 1251 1251 } … … 1288 1288 } 1289 1289 owl_function_nextmsg_full(filter, skip_deleted, last_if_none); 1290 if (filter) owl_free(filter);1290 if (filter) g_free(filter); 1291 1291 return(NULL); 1292 1292 } … … 1318 1318 } 1319 1319 owl_function_prevmsg_full(filter, skip_deleted, first_if_none); 1320 if (filter) owl_free(filter);1320 if (filter) g_free(filter); 1321 1321 return(NULL); 1322 1322 } … … 1357 1357 if (filtname) { 1358 1358 owl_function_change_currentview_filter(filtname); 1359 owl_free(filtname);1359 g_free(filtname); 1360 1360 } 1361 1361 1362 1362 done: 1363 owl_free(tmp_argv);1363 g_free(tmp_argv); 1364 1364 1365 1365 return NULL; … … 1683 1683 } else if (newbuff[i] != ' ') { 1684 1684 owl_function_makemsg("Invalid arguments to 'multi' command."); 1685 owl_free(newbuff);1685 g_free(newbuff); 1686 1686 return NULL; 1687 1687 } … … 1691 1691 for (i = 0; commands[i] != NULL; i++) { 1692 1692 if (lastrv) { 1693 owl_free(lastrv);1693 g_free(lastrv); 1694 1694 } 1695 1695 lastrv = owl_function_command(commands[i]); 1696 1696 } 1697 owl_free(newbuff);1697 g_free(newbuff); 1698 1698 g_strfreev(commands); 1699 1699 return lastrv; … … 2017 2017 err: 2018 2018 g_string_free(recip, true); 2019 owl_free(message);2019 g_free(message); 2020 2020 return NULL; 2021 2021 } … … 2104 2104 foo=owl_function_create_negative_filter(owl_view_get_filtname(owl_global_get_current_view(&g))); 2105 2105 owl_function_change_currentview_filter(foo); 2106 owl_free(foo);2106 g_free(foo); 2107 2107 return(NULL); 2108 2108 } … … 2129 2129 owl_function_create_filter(argc, myargv); 2130 2130 owl_function_change_currentview_filter("owl-dynamic"); 2131 owl_free(myargv);2131 g_free(myargv); 2132 2132 return NULL; 2133 2133 } … … 2264 2264 if (filtname) { 2265 2265 owl_function_change_currentview_filter(filtname); 2266 owl_free(filtname);2266 g_free(filtname); 2267 2267 } 2268 2268 return NULL; … … 2279 2279 longuser = long_zuser(argv[1]); 2280 2280 filtname = owl_function_zuserfilt(longuser); 2281 owl_free(longuser);2281 g_free(longuser); 2282 2282 if (filtname) { 2283 2283 owl_function_change_currentview_filter(filtname); 2284 owl_free(filtname);2284 g_free(filtname); 2285 2285 } 2286 2286 return NULL; … … 2383 2383 if (filtname) { 2384 2384 (void) owl_function_color_filter(filtname, argv[2], (argc == 4 ? argv[3] : NULL)); 2385 owl_free(filtname);2385 g_free(filtname); 2386 2386 } 2387 2387 return NULL; … … 2486 2486 text = owl_string_build_quoted("filter %q", argv[1]); 2487 2487 owl_function_punt(text, unpunt); 2488 owl_free(text);2488 g_free(text); 2489 2489 } else { 2490 2490 owl_function_punt(skiptokens(buff, 1), unpunt); … … 2576 2576 if (argc==2) { 2577 2577 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); 2579 2579 owl_editwin_set_callback(e, owl_callback_aimlogin); 2580 2580 return(NULL);
Note: See TracChangeset
for help on using the changeset viewer.