[nautilus-actions] Release the object whose importation has been cancelled
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Release the object whose importation has been cancelled
- Date: Fri, 6 Jan 2012 07:32:25 +0000 (UTC)
commit 60c601fcb8a0442cef2a9ffd1179aad6eb60e27b
Author: Pierre Wieser <pwieser trychlos org>
Date: Thu Jan 5 20:41:49 2012 +0100
Release the object whose importation has been cancelled
ChangeLog | 3 +++
src/core/na-importer.c | 2 ++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c7ac1dd..11a8b1b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2012-01-05 Pierre Wieser <pwieser trychlos org>
+ * src/core/na-importer.c (manage_import_mode):
+ Release the duplicated object which has been cancelled by the user.
+
* src/core/na-icontext-factory.c:
* src/core/na-iduplicable.c:
* src/core/na-object-action-factory.c:
diff --git a/src/core/na-importer.c b/src/core/na-importer.c
index 65f40d3..81e4173 100644
--- a/src/core/na-importer.c
+++ b/src/core/na-importer.c
@@ -350,6 +350,8 @@ manage_import_mode( NAImporterParms *parms, GList *results, NAImporterAskUserPar
_( "Import was canceled due to user request." ));
}
g_free( id );
+ g_object_unref( result->imported );
+ result->imported = NULL;
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]