Changeset 6965867


Ignore:
Timestamp:
Feb 9, 2011, 10:59:56 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
3f82515
Parents:
8061a6a
git-author:
David Benjamin <davidben@mit.edu> (02/06/11 23:01:14)
git-committer:
David Benjamin <davidben@mit.edu> (02/09/11 22:59:56)
Message:
g_ptr_array_new_with_free_func is glib 2.22+

Use g_ptr_array_foreach instead.

Reported-by: Adam Glasgall <adam@crossproduct.net>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • util.c

    r0290b2a r6965867  
    115115  char quote;
    116116
    117   argv = g_ptr_array_new_with_free_func(owl_free);
     117  argv = g_ptr_array_new();
    118118  len=strlen(line);
    119119  curarg = g_string_new("");
     
    176176  /* check for unbalanced quotes */
    177177  if (quote!='\0') {
     178    /* TODO: when we move to requiring glib 2.22+, use
     179     * g_ptr_array_new_with_free_func. */
     180    g_ptr_array_foreach(argv, (GFunc)owl_free, NULL);
    178181    g_ptr_array_free(argv, true);
    179182    *argc = -1;
Note: See TracChangeset for help on using the changeset viewer.