[Github-comments] [geany/geany-plugins] Workbench (#598)
LarsGit223
notifications at xxxxx
Sat Aug 19 17:17:22 UTC 2017
LarsGit223 commented on this pull request.
> + {
+ g_free (bookmarks_strings[index]);
+ }
+ g_free(bookmarks_strings);
+ }
+
+ /* Save projects data */
+ for (index = 0 ; index < wb->projects->len ; index++)
+ {
+ entry = g_ptr_array_index(wb->projects, index);
+ g_snprintf(group, sizeof(group), "Project-%u", (index+1));
+ g_key_file_set_string(kf, group, "AbsFilename", entry->abs_filename);
+ g_key_file_set_string(kf, group, "RelFilename", entry->rel_filename);
+ g_key_file_set_boolean(kf, group, "UseAbsFilename", entry->use_abs);
+ }
+ contents = g_key_file_to_data (kf, &length, error);
According to the documentation "g_key_file_to_data()" never returns an error. That's kind of weird. I check the result anyway now and so error will not be re-used.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/598#discussion_r134096348
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170819/74895757/attachment.html>
More information about the Github-comments
mailing list