X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=atk-adaptor%2Faccessible-leasing.c;h=dcddb0b5452f9e9d99b961e03cd5bb3b0a5e9940;hb=683739dea15d7c02c217a404d8c5d9d7af076a57;hp=f4d0e2f5ff3d8cdb23639d2898b40588a0e15fca;hpb=30621e9d1284b140845408ecb0f5e2c598eafdc2;p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git diff --git a/atk-adaptor/accessible-leasing.c b/atk-adaptor/accessible-leasing.c index f4d0e2f..dcddb0b 100644 --- a/atk-adaptor/accessible-leasing.c +++ b/atk-adaptor/accessible-leasing.c @@ -72,7 +72,9 @@ spi_leasing_finalize (GObject * object) { SpiLeasing *leasing = SPI_LEASING (object); - g_free (leasing->expiry_queue); + if (leasing->expiry_func_id) + g_source_remove (leasing->expiry_func_id); + g_queue_free (leasing->expiry_queue); G_OBJECT_CLASS (spi_leasing_parent_class)->finalize (object); } @@ -82,7 +84,7 @@ spi_leasing_dispose (GObject * object) SpiLeasing *leasing = SPI_LEASING (object); ExpiryElement *head; - while (head = g_queue_pop_head (leasing->expiry_queue)) + while ((head = g_queue_pop_head (leasing->expiry_queue))) { g_object_unref (head->object); g_slice_free (ExpiryElement, head);