app/widgets/gimpclipboard.c app/widgets/gimpcontainerview.c allocate
2007-05-22 Sven Neumann <sven@gimp.org> * app/widgets/gimpclipboard.c * app/widgets/gimpcontainerview.c * app/widgets/gimpdialogfactory.c: allocate structs using GSlice. svn path=/trunk/; revision=22582
This commit is contained in:
committed by
Sven Neumann
parent
3b9f1cc4fa
commit
17f8ab01e6
@ -1,3 +1,9 @@
|
||||
2007-05-22 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/widgets/gimpclipboard.c
|
||||
* app/widgets/gimpcontainerview.c
|
||||
* app/widgets/gimpdialogfactory.c: allocate structs using GSlice.
|
||||
|
||||
2007-05-22 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* libgimpconfig/gimpscanner.c
|
||||
|
||||
@ -87,7 +87,7 @@ gimp_clipboard_init (Gimp *gimp)
|
||||
|
||||
g_return_if_fail (gimp_clip == NULL);
|
||||
|
||||
gimp_clip = g_new0 (GimpClipboard, 1);
|
||||
gimp_clip = g_slice_new0 (GimpClipboard);
|
||||
|
||||
g_object_set_data_full (G_OBJECT (gimp), GIMP_CLIPBOARD_KEY,
|
||||
gimp_clip, (GDestroyNotify) gimp_clipboard_free);
|
||||
@ -137,8 +137,8 @@ gimp_clipboard_init (Gimp *gimp)
|
||||
const gchar *mime_type = *type;
|
||||
|
||||
if (gimp->be_verbose)
|
||||
g_print ("clipboard: writable pixbuf format: %s\n",
|
||||
mime_type);
|
||||
g_printerr ("clipboard: writable pixbuf format: %s\n",
|
||||
mime_type);
|
||||
|
||||
gimp_clip->target_entries[i].target = g_strdup (mime_type);
|
||||
gimp_clip->target_entries[i].flags = 0;
|
||||
@ -537,7 +537,7 @@ gimp_clipboard_free (GimpClipboard *gimp_clip)
|
||||
|
||||
g_free (gimp_clip->svg_target_entries);
|
||||
|
||||
g_free (gimp_clip);
|
||||
g_slice_free (GimpClipboard, gimp_clip);
|
||||
}
|
||||
|
||||
static GdkAtom *
|
||||
|
||||
@ -257,7 +257,7 @@ gimp_container_view_private_finalize (GimpContainerViewPrivate *private)
|
||||
private->hash_table = NULL;
|
||||
}
|
||||
|
||||
g_free (private);
|
||||
g_slice_free (GimpContainerViewPrivate, private);
|
||||
}
|
||||
|
||||
static GimpContainerViewPrivate *
|
||||
@ -280,7 +280,7 @@ gimp_container_view_get_private (GimpContainerView *view)
|
||||
|
||||
view_iface = GIMP_CONTAINER_VIEW_GET_INTERFACE (view);
|
||||
|
||||
private = g_new0 (GimpContainerViewPrivate, 1);
|
||||
private = g_slice_new0 (GimpContainerViewPrivate);
|
||||
|
||||
private->view_border_width = 1;
|
||||
|
||||
|
||||
@ -195,7 +195,8 @@ gimp_dialog_factory_finalize (GObject *object)
|
||||
g_free (entry->blurb);
|
||||
g_free (entry->stock_id);
|
||||
g_free (entry->help_id);
|
||||
g_free (entry);
|
||||
|
||||
g_slice_free (GimpDialogFactoryEntry, entry);
|
||||
}
|
||||
|
||||
if (factory->registered_dialogs)
|
||||
@ -301,7 +302,7 @@ gimp_dialog_factory_register_entry (GimpDialogFactory *factory,
|
||||
g_return_if_fail (GIMP_IS_DIALOG_FACTORY (factory));
|
||||
g_return_if_fail (identifier != NULL);
|
||||
|
||||
entry = g_new0 (GimpDialogFactoryEntry, 1);
|
||||
entry = g_slice_new0 (GimpDialogFactoryEntry);
|
||||
|
||||
entry->identifier = g_strdup (identifier);
|
||||
entry->name = g_strdup (name);
|
||||
|
||||
Reference in New Issue
Block a user