mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
gnc_account_list_name_violations elements must be freed
This commit is contained in:
@@ -132,7 +132,7 @@ static gchar *gnc_account_separator_is_valid (const gchar *separator,
|
|||||||
message = gnc_account_name_violations_errmsg (*normalized_separator,
|
message = gnc_account_name_violations_errmsg (*normalized_separator,
|
||||||
conflict_accts);
|
conflict_accts);
|
||||||
|
|
||||||
g_list_free (conflict_accts);
|
g_list_free_full (conflict_accts, g_free);
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1101,6 +1101,7 @@ RESTART:
|
|||||||
invalid_account_names );
|
invalid_account_names );
|
||||||
gnc_warning_dialog(parent, "%s", message);
|
gnc_warning_dialog(parent, "%s", message);
|
||||||
g_free ( message );
|
g_free ( message );
|
||||||
|
g_list_free_full (invalid_account_names, g_free);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fix account color slots being set to 'Not Set', should run once on a book
|
// Fix account color slots being set to 'Not Set', should run once on a book
|
||||||
|
|||||||
@@ -283,8 +283,8 @@ gchar *gnc_account_name_violations_errmsg (const gchar *separator, GList* invali
|
|||||||
* @param book Pointer to the book with accounts to verify
|
* @param book Pointer to the book with accounts to verify
|
||||||
* @param separator The separator character to verify against
|
* @param separator The separator character to verify against
|
||||||
*
|
*
|
||||||
* @return A GList of invalid account names. Should be freed with g_list_free
|
* @return A GList of invalid account names. Should be freed with
|
||||||
* if no longer needed.
|
* g_list_free_full (value, g_free) when no longer needed.
|
||||||
*/
|
*/
|
||||||
GList *gnc_account_list_name_violations (QofBook *book, const gchar *separator);
|
GList *gnc_account_list_name_violations (QofBook *book, const gchar *separator);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user