Changeset f20daff for variable.c


Ignore:
Timestamp:
Jun 14, 2013, 7:39:23 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10
Children:
9d4dfdc
Parents:
5d8c9a7
git-author:
David Benjamin <davidben@mit.edu> (06/04/13 19:51:06)
git-committer:
David Benjamin <davidben@mit.edu> (06/14/13 19:39:23)
Message:
Don't g_value_unset an uninitialized GValue

Silences a GObject assertion.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • variable.c

    r6a8b519 rf20daff  
    777777  g_free(v->default_str);
    778778  g_free(v->validsettings);
    779   g_value_unset(&(v->val));
     779  if (v->type != OWL_VARIABLE_OTHER)
     780    g_value_unset(&(v->val));
    780781  g_closure_unref(v->get_tostring_fn);
    781782  g_closure_unref(v->set_fromstring_fn);
Note: See TracChangeset for help on using the changeset viewer.