mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix memory leak in xaccTransGetReadOnly
In addition implement a cache for this value as suggested in the comments as this function is called on every transaction commit.
This commit is contained in:
@@ -423,7 +423,7 @@ void xaccTransClearReadOnly (Transaction *trans);
|
||||
|
||||
/** Returns a non-NULL value if this Transaction was marked as read-only with
|
||||
* some specific "reason" text. */
|
||||
const char * xaccTransGetReadOnly (const Transaction *trans);
|
||||
const char * xaccTransGetReadOnly (Transaction *trans);
|
||||
|
||||
/** Returns TRUE if this Transaction is read-only because its posted-date is
|
||||
* older than the "auto-readonly" threshold of this book. See
|
||||
|
||||
Reference in New Issue
Block a user