gedit r6970 - in trunk: . gedit



Author: icq
Date: Sat Mar 21 21:06:49 2009
New Revision: 6970
URL: http://svn.gnome.org/viewvc/gedit?rev=6970&view=rev

Log:
2009-03-21  Ignacio Casal Quinteiro  <nacho resa gmail com>

        * gedit/gedit-commands-search.c:
        Use g_slice_new instead of gnew.



Modified:
   trunk/ChangeLog
   trunk/gedit/gedit-commands-search.c

Modified: trunk/gedit/gedit-commands-search.c
==============================================================================
--- trunk/gedit/gedit-commands-search.c	(original)
+++ trunk/gedit/gedit-commands-search.c	Sat Mar 21 21:06:49 2009
@@ -71,7 +71,7 @@
 {
 	g_free (data->find_text);
 	g_free (data->replace_text);
-	g_free (data);
+	g_slice_free (LastSearchData, data);
 }
 
 static void
@@ -136,7 +136,7 @@
 
 	if (data == NULL)
 	{
-		data = g_new0 (LastSearchData, 1);
+		data = g_slice_new0 (LastSearchData);
 		last_search_data_set (data, dialog);
 
 		g_object_set_data (G_OBJECT (doc),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]