Changeset 252


Ignore:
Timestamp:
May 7, 2006, 8:35:50 PM (15 years ago)
Author:
joshe
Message:

Fix a double-free bug that was causing preference corruption and crashes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/conf.c

    r249 r252  
    433433
    434434  bkey->type = TYPE_STR;
    435   bkey->val.s.s = key;
     435  bkey->val.s.s = g_strdup(key);
    436436  bkey->val.s.i = strlen(key);
    437437
    438438  bval->type = TYPE_STR;
    439   bval->val.s.s = value;
     439  bval->val.s.s = g_strdup(value);
    440440  bval->val.s.i = strlen(value);
    441441
Note: See TracChangeset for help on using the changeset viewer.