comparison plugins/gevolution/gevolution.c @ 11919:51832ad72a6b

[gaim-migrate @ 14210] Some notes, just in case anyone is interested in playing around with Evolution and Bonobo. I think the bonobo object leaks can lead to a crash when running/exiting Gaim a few times within a short timespan when the gevolution plugin is loaded? committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 31 Oct 2005 03:55:56 +0000
parents bb0d7b719af2
children f23ebb7b2dfd
comparison
equal deleted inserted replaced
11918:92766141d912 11919:51832ad72a6b
292 NULL, NULL); 292 NULL, NULL);
293 *menu = g_list_append(*menu, act); 293 *menu = g_list_append(*menu, act);
294 } 294 }
295 } 295 }
296 296
297 /* TODO: Something in here leaks 1 reference to a bonobo object! */
297 static gboolean 298 static gboolean
298 load_timeout(gpointer data) 299 load_timeout(gpointer data)
299 { 300 {
300 GaimPlugin *plugin = (GaimPlugin *)data; 301 GaimPlugin *plugin = (GaimPlugin *)data;
301 EBookQuery *query; 302 EBookQuery *query;
302 303
303 timer = 0; 304 timer = 0;
304 305
306 /* Maybe this is it? */
305 if (!gevo_load_addressbook(NULL, &book, NULL)) 307 if (!gevo_load_addressbook(NULL, &book, NULL))
306 return FALSE; 308 return FALSE;
307 309
308 query = e_book_query_any_field_contains(""); 310 query = e_book_query_any_field_contains("");
309 311
312 /* Is it this? */
310 book_view_tag = e_book_async_get_book_view(book, query, NULL, -1, 313 book_view_tag = e_book_async_get_book_view(book, query, NULL, -1,
311 got_book_view_cb, NULL); 314 got_book_view_cb, NULL);
312 315
313 e_book_query_unref(query); 316 e_book_query_unref(query);
314 317