[maemo-commits] [maemo-commits] r9542 - in projects/haf/branches/maemo-af-desktop/hildon-desktop: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu Feb 1 18:23:43 EET 2007
Author: jobi
Date: 2007-02-01 18:23:42 +0200 (Thu, 01 Feb 2007)
New Revision: 9542

Modified:
   projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog
   projects/haf/branches/maemo-af-desktop/hildon-desktop/src/hd-select-plugins-dialog.c
Log:

2007-02-01  Johan Bilien  <johan.bilien at nokia.com>

	* src/hd-select-plugins-dialog.c: Fixed the leak of a GDir



Modified: projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog	2007-02-01 16:20:00 UTC (rev 9541)
+++ projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog	2007-02-01 16:23:42 UTC (rev 9542)
@@ -1,3 +1,7 @@
+2007-02-01  Johan Bilien  <johan.bilien at nokia.com>
+
+	* src/hd-select-plugins-dialog.c: Fixed the leak of a GDir
+
 2007-02-01  Lucas Rocha  <lucas.rocha at nokia.com>
 
 	* libhildondesktop/libhildondesktop.h: add HD_PLUGIN_DEFINE_WITH_CODE

Modified: projects/haf/branches/maemo-af-desktop/hildon-desktop/src/hd-select-plugins-dialog.c
===================================================================
--- projects/haf/branches/maemo-af-desktop/hildon-desktop/src/hd-select-plugins-dialog.c	2007-02-01 16:20:00 UTC (rev 9541)
+++ projects/haf/branches/maemo-af-desktop/hildon-desktop/src/hd-select-plugins-dialog.c	2007-02-01 16:23:42 UTC (rev 9542)
@@ -1,7 +1,7 @@
 /*
  * This file is part of hildon-desktop
  *
- * Copyright (C) 2006 Nokia Corporation.
+ * Copyright (C) 2006, 2007 Nokia Corporation.
  *
  * Author:  Lucas Rocha <lucas.rocha at nokia.com>
  *          Johan Bilien <johan.bilien at nokia.com>
@@ -185,6 +185,7 @@
       g_warning ("Error loading plugin configuration file: %s", error->message);
 
       g_error_free (error);
+      g_dir_close (dir);
 
       return NULL;
     }
@@ -200,6 +201,7 @@
       g_warning ("Error reading plugin configuration file: %s", error->message);
 
       g_error_free (error);
+      g_dir_close (dir);
 
       return NULL;
     }
@@ -219,6 +221,7 @@
     g_free (name);
   }
 
+  g_dir_close (dir);
   return store;
 }
 


More information about the maemo-commits mailing list