[goffice] rsm: fix reversed precondition
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] rsm: fix reversed precondition
- Date: Mon, 5 Dec 2011 20:10:36 +0000 (UTC)
commit ab32eab1f0cb412b553b56638fe7635bd8a89f6a
Author: Morten Welinder <terra gnome org>
Date: Mon Dec 5 15:10:14 2011 -0500
rsm: fix reversed precondition
ChangeLog | 7 ++++++-
goffice/utils/go-rsm.c | 4 +++-
2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8be5762..d90d058 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-05 Morten Welinder <terra gnome org>
+
+ * goffice/utils/go-rsm.c (go_rsm_unregister_file): fix
+ precondition.
+
2011-12-05 Jean Brefort <jean brefort normalesup org>
* goffice/canvas/goc-group.c (goc_group_init): initialize the transform
@@ -22,7 +27,7 @@
(go_emf_polygon16), (go_emf_polyline16), (go_emf_polybezierto16),
(go_emf_polylineto16), (go_emf_polypolyline16),
(go_emf_polypolygon16): more work.
-
+
2011-12-04 Morten Welinder <terra gnome org>
diff --git a/goffice/utils/go-rsm.c b/goffice/utils/go-rsm.c
index 5f2482b..bb912a8 100644
--- a/goffice/utils/go-rsm.c
+++ b/goffice/utils/go-rsm.c
@@ -40,6 +40,8 @@ _go_rsm_init (void)
void
_go_rsm_shutdown (void)
{
+ if (debug)
+ g_printerr ("Shutting down with %d resources\n", g_hash_table_size (rsm));
g_hash_table_destroy (rsm);
rsm = NULL;
}
@@ -64,7 +66,7 @@ void
go_rsm_unregister_file (const char *id)
{
g_return_if_fail (id != NULL);
- g_return_if_fail (g_hash_table_lookup (rsm, id) == NULL);
+ g_return_if_fail (g_hash_table_lookup (rsm, id) != NULL);
if (debug)
g_printerr ("Unregistering resource [%s]\n", id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]