[anjuta] dir-project: Avoid a crash when closing a project
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] dir-project: Avoid a crash when closing a project
- Date: Fri, 16 Mar 2012 21:52:50 +0000 (UTC)
commit 09c050ece9b2d62e0b802e7510c554b35aec89f6
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Fri Mar 16 22:25:33 2012 +0100
dir-project: Avoid a crash when closing a project
plugins/dir-project/dir-project.c | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/plugins/dir-project/dir-project.c b/plugins/dir-project/dir-project.c
index 6d0f165..557b5fb 100644
--- a/plugins/dir-project/dir-project.c
+++ b/plugins/dir-project/dir-project.c
@@ -108,17 +108,6 @@ static GObject *parent_class;
/* Helper functions
*---------------------------------------------------------------------------*/
-static void
-project_node_destroy (DirProject *project, AnjutaProjectNode *node)
-{
- g_return_if_fail (project != NULL);
- g_return_if_fail (DIR_IS_PROJECT (project));
-
- if (node) {
- g_object_unref (node);
- }
-}
-
static AnjutaProjectNode *
project_node_new (DirProject *project, AnjutaProjectNode *parent, AnjutaProjectNodeType type, GFile *file, const gchar *name, GError **error)
{
@@ -840,9 +829,6 @@ dir_project_save_node (DirProject *project, AnjutaProjectNode *node, GError **er
void
dir_project_unload (DirProject *project)
{
- /* project data */
- project_node_destroy (project, ANJUTA_PROJECT_NODE (project));
-
/* shortcut hash tables */
if (project->groups) g_hash_table_destroy (project->groups);
project->groups = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]