empathy r1822 - trunk/libempathy-gtk
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1822 - trunk/libempathy-gtk
- Date: Fri, 21 Nov 2008 16:19:11 +0000 (UTC)
Author: xclaesse
Date: Fri Nov 21 16:19:11 2008
New Revision: 1822
URL: http://svn.gnome.org/viewvc/empathy?rev=1822&view=rev
Log:
Use g_slice functions with ReceiveResponseData. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
Modified:
trunk/libempathy-gtk/empathy-ft-manager.c
Modified: trunk/libempathy-gtk/empathy-ft-manager.c
==============================================================================
--- trunk/libempathy-gtk/empathy-ft-manager.c (original)
+++ trunk/libempathy-gtk/empathy-ft-manager.c Fri Nov 21 16:19:11 2008
@@ -747,7 +747,7 @@
g_object_unref (response_data->tp_file);
g_object_unref (response_data->ft_manager);
- g_free (response_data);
+ g_slice_free (ReceiveResponseData, response_data);
}
static void
@@ -944,7 +944,7 @@
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_widget_grab_default (button);
- response_data = g_new0 (ReceiveResponseData, 1);
+ response_data = g_slice_new0 (ReceiveResponseData);
response_data->ft_manager = g_object_ref (ft_manager);
response_data->tp_file = g_object_ref (tp_file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]