[evolution-ews] Fix leak of GSimpleAsyncResult in message handling



commit 1ac06aa5208d3b1503765b4953d1fa3cb35961b5
Author: David Woodhouse <David Woodhouse intel com>
Date:   Sun Aug 14 00:01:32 2011 +0100

    Fix leak of GSimpleAsyncResult in message handling
    
    ==7221== 2,432 (1,536 direct, 896 indirect) bytes in 16 blocks are definitely lost in loss record 29,849 of 31,050
    ==7221==    at 0x4A0649D: malloc (vg_replace_malloc.c:236)
    ==7221==    by 0x3D33049600: g_malloc (gmem.c:164)
    ==7221==    by 0x3D3305E476: g_slice_alloc (gslice.c:842)
    ==7221==    by 0x3D3305E755: g_slice_alloc0 (gslice.c:854)
    ==7221==    by 0x3D33C317C3: g_type_create_instance (gtype.c:1865)
    ==7221==    by 0x3D33C102CB: g_object_constructor (gobject.c:1615)
    ==7221==    by 0x3D33C13271: g_object_newv (gobject.c:1398)
    ==7221==    by 0x3D33C13E3B: g_object_new (gobject.c:1308)
    ==7221==    by 0x3D36C64030: g_simple_async_result_new (gsimpleasyncresult.c:321)
    ==7221==    by 0x1992294A: e_ews_connection_get_items_start (e-ews-connection.c:2109)
    ==7221==    by 0x19925A54: e_ews_connection_get_items (e-ews-connection.c:2167)
    ==7221==    by 0x19D4A22F: ews_refresh_info_sync (camel-ews-folder.c:928)

 src/server/e-ews-connection.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
index d3d4a8f..cfe48b0 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -468,6 +468,7 @@ exit:
 	} else {
 		g_simple_async_result_complete_in_idle (enode->simple);
 	}
+	g_object_unref (enode->simple);
 	ews_active_job_done (enode->cnc, enode);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]