[nautilus] monitor: use GSlice



commit 1860bf48a5dd39ba6ef7ccedea56058a4ff7f9a4
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Oct 19 17:43:10 2012 -0400

    monitor: use GSlice

 libnautilus-private/nautilus-monitor.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libnautilus-private/nautilus-monitor.c b/libnautilus-private/nautilus-monitor.c
index 487c308..46b229a 100644
--- a/libnautilus-private/nautilus-monitor.c
+++ b/libnautilus-private/nautilus-monitor.c
@@ -139,7 +139,7 @@ nautilus_monitor_directory (GFile *location)
 	GFileMonitor *dir_monitor;
 	NautilusMonitor *ret;
 
-	ret = g_new0 (NautilusMonitor, 1);
+	ret = g_slice_new0 (NautilusMonitor);
 	dir_monitor = g_file_monitor_directory (location, G_FILE_MONITOR_WATCH_MOUNTS, NULL, NULL);
 
 	if (dir_monitor != NULL) {
@@ -180,5 +180,5 @@ nautilus_monitor_cancel (NautilusMonitor *monitor)
 
 	g_clear_object (&monitor->location);
 	g_clear_object (&monitor->mount);
-	g_free (monitor);
+	g_slice_free (NautilusMonitor, monitor);
 }



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