AUDIT: r23192 - gnucash/trunk/src - Bug 632362 - Unable to create "reversing transaction" again after it is removed

John Ralls jralls at code.gnucash.org
Tue Sep 24 16:11:26 EDT 2013


Author: jralls
Date: 2013-09-24 16:11:24 -0400 (Tue, 24 Sep 2013)
New Revision: 23192
Trac: http://svn.gnucash.org/trac/changeset/23192

Modified:
   gnucash/trunk/src/engine/Account.c
   gnucash/trunk/src/engine/SchedXaction.c
   gnucash/trunk/src/engine/Split.c
   gnucash/trunk/src/engine/Transaction.c
   gnucash/trunk/src/engine/gnc-commodity.c
   gnucash/trunk/src/engine/gnc-pricedb.c
   gnucash/trunk/src/engine/gncEmployee.c
   gnucash/trunk/src/engine/gncVendor.c
   gnucash/trunk/src/gnome-utils/gnc-combott.c
   gnucash/trunk/src/gnome-utils/gnc-plugin-page.c
   gnucash/trunk/src/libqof/qof/qofinstance.c
   gnucash/trunk/src/register/register-gnome/gnucash-cursor.c
   gnucash/trunk/src/register/register-gnome/gnucash-grid.c
   gnucash/trunk/src/register/register-gnome/gnucash-header.c
   gnucash/trunk/src/register/register-gnome/gnucash-item-edit.c
Log:
Bug 632362 - Unable to create "reversing transaction" again after it is removed

>From leaking references in g_object_get because both g_object_get
and g_value_set_object ref the object, which is only unreffed once.
Using g_value_take_object() instead prevents the double-ref.

BP



More information about the gnucash-patches mailing list