mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 799099 - Crash when trying to get quotes
The comment on gnc_pricedb_add_price says that writing to the GNCPrice* after calling it will produce interesting results, and calling gnc_price_commit_edit and g_object_unref both qualify, so remove those calls and the corresponding gnc_price_begin_edit.
This commit is contained in:
@@ -790,10 +790,8 @@ GncQuotesImpl::create_quotes (const bpt::ptree& pt, const CommVec& comm_vec)
|
||||
auto price{parse_one_quote(pt, comm)};
|
||||
if (!price)
|
||||
continue;
|
||||
gnc_price_begin_edit (price);
|
||||
// See the comment at gnc_pricedb_add_price
|
||||
gnc_pricedb_add_price(pricedb, price);
|
||||
gnc_price_commit_edit(price);
|
||||
gnc_price_unref (price);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user