[telepathy-gabble/master] remove temporary directory

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Mon Mar 30 07:19:32 PDT 2009


---
 src/ft-manager.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/ft-manager.c b/src/ft-manager.c
index 04e5c52..ec6b4aa 100644
--- a/src/ft-manager.c
+++ b/src/ft-manager.c
@@ -26,6 +26,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <glib/gstdio.h>
 
 #include "caps-channel-manager.h"
 #include "connection.h"
@@ -181,6 +182,13 @@ gabble_ft_manager_finalize (GObject *object)
 {
   GabbleFtManager *self = GABBLE_FT_MANAGER (object);
 
+  if (self->priv->tmp_dir != NULL)
+    {
+      if (g_rmdir (self->priv->tmp_dir) != 0)
+        {
+          DEBUG ("rmdir failed: %s", g_strerror (errno));
+        }
+    }
   g_free (self->priv->tmp_dir);
 
   G_OBJECT_CLASS (gabble_ft_manager_parent_class)->finalize (object);
-- 
1.5.6.5




More information about the telepathy-commits mailing list