Thannoy commented on this pull request.
+ kf = g_key_file_new (); + + if (!g_key_file_load_from_data (kf, contents, size, + G_KEY_FILE_KEEP_COMMENTS | G_KEY_FILE_KEEP_TRANSLATIONS, + error)) + { + g_key_file_free (kf); + return FALSE; + } + + if (g_key_file_has_key (kf, "pretty-printer", "newLineChars", NULL)) + { + if (ppo->newLineChars != NULL ) + { + g_free ((gpointer)ppo->newLineChars);
(minor) same as above, you can use g_free unconditionally here