gedit r6971 - in trunk: . gedit
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gedit r6971 - in trunk: . gedit
- Date: Sun, 22 Mar 2009 20:10:45 +0000 (UTC)
Author: icq
Date: Sun Mar 22 20:10:45 2009
New Revision: 6971
URL: http://svn.gnome.org/viewvc/gedit?rev=6971&view=rev
Log:
2009-03-22 Ignacio Casal Quinteiro <nacho resa gmail com>
* gedit/gedit-gio-document-saver.c:
Use g_slice_new instead of gnew.
Modified:
trunk/ChangeLog
trunk/gedit/gedit-gio-document-saver.c
Modified: trunk/gedit/gedit-gio-document-saver.c
==============================================================================
--- trunk/gedit/gedit-gio-document-saver.c (original)
+++ trunk/gedit/gedit-gio-document-saver.c Sun Mar 22 20:10:45 2009
@@ -114,7 +114,7 @@
{
AsyncData *async;
- async = g_new (AsyncData, 1);
+ async = g_slice_new (AsyncData);
async->saver = gvsaver;
async->buffer = NULL;
async->cancellable = g_object_ref (gvsaver->priv->cancellable);
@@ -128,7 +128,7 @@
{
g_object_unref (async->cancellable);
g_free (async->buffer);
- g_free (async);
+ g_slice_free (AsyncData, async);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]