empathy r1112 - trunk/libempathy-gtk
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1112 - trunk/libempathy-gtk
- Date: Sun, 18 May 2008 17:00:39 +0000 (UTC)
Author: xclaesse
Date: Sun May 18 17:00:38 2008
New Revision: 1112
URL: http://svn.gnome.org/viewvc/empathy?rev=1112&view=rev
Log:
Do not use statis pointer for MenuPopupData because it get freed.
Modified:
trunk/libempathy-gtk/empathy-contact-list-view.c
Modified: trunk/libempathy-gtk/empathy-contact-list-view.c
==============================================================================
--- trunk/libempathy-gtk/empathy-contact-list-view.c (original)
+++ trunk/libempathy-gtk/empathy-contact-list-view.c Sun May 18 17:00:38 2008
@@ -443,12 +443,13 @@
gpointer user_data)
{
if (event->keyval == GDK_Menu) {
- MenuPopupData data;
+ MenuPopupData *data;
- data.view = view;
- data.button = 0;
- data.time = event->time;
- contact_list_view_popup_menu_idle_cb (&data);
+ data = g_slice_new (MenuPopupData);
+ data->view = view;
+ data->button = 0;
+ data->time = event->time;
+ g_idle_add (contact_list_view_popup_menu_idle_cb, data);
}
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]