use GSlice to allocate struct.
2007-05-22 Sven Neumann <sven@gimp.org> * app/widgets/gimpactionview.c: use GSlice to allocate struct. svn path=/trunk/; revision=22576
This commit is contained in:

committed by
Sven Neumann

parent
b3d3f4f291
commit
16054d8293
@ -500,7 +500,8 @@ gimp_action_view_conflict_response (GtkWidget *dialog,
|
||||
}
|
||||
|
||||
g_free (confirm_data->accel_path);
|
||||
g_free (confirm_data);
|
||||
|
||||
g_slice_free (ConfirmData, confirm_data);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -528,7 +529,7 @@ gimp_action_view_conflict_confirm (GimpActionView *view,
|
||||
|
||||
accel_string = gimp_get_accel_string (accel_key, accel_mask);
|
||||
|
||||
confirm_data = g_new0 (ConfirmData, 1);
|
||||
confirm_data = g_slice_new (ConfirmData);
|
||||
|
||||
confirm_data->manager = view->manager;
|
||||
confirm_data->accel_path = g_strdup (accel_path);
|
||||
|
Reference in New Issue
Block a user