Changeset 44dd092


Ignore:
Timestamp:
Jun 19, 2011, 1:08:09 AM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Children:
d4c3284
Parents:
24a791f
git-author:
Anders Kaseorg <andersk@mit.edu> (06/18/11 22:00:14)
git-committer:
Anders Kaseorg <andersk@mit.edu> (06/19/11 01:08:09)
Message:
Copy and free owl_variable.pval_default

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

Legend:

Unmodified
Added
Removed
  • variable.c

    r4c7c21f r44dd092  
    584584      if (!cur->delete_fn)
    585585        cur->delete_fn = owl_variable_delete_default;
     586      cur->pval_default = g_strdup(var->pval_default);
    586587      cur->set_fn(cur, cur->pval_default);
    587588      break;
     
    724725  g_free(v->summary);
    725726  g_free(v->description);
     727  if (v->type == OWL_VARIABLE_STRING)
     728    g_free(v->pval_default);
    726729  g_free(v);
    727730}
Note: See TracChangeset for help on using the changeset viewer.