projects
/
platform
/
upstream
/
gcr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2faab07
)
gcr: Fix null pointer dereference when finalizing GcrCollectionModel
author
Stef Walter
<stefw@collabora.co.uk>
Wed, 7 Sep 2011 14:14:08 +0000
(16:14 +0200)
committer
Stef Walter
<stefw@collabora.co.uk>
Wed, 7 Sep 2011 14:14:08 +0000
(16:14 +0200)
gcr/gcr-collection-model.c
patch
|
blob
|
history
diff --git
a/gcr/gcr-collection-model.c
b/gcr/gcr-collection-model.c
index
78b2221
..
e46bf51
100644
(file)
--- a/
gcr/gcr-collection-model.c
+++ b/
gcr/gcr-collection-model.c
@@
-1200,10
+1200,11
@@
gcr_collection_model_finalize (GObject *object)
g_assert (g_hash_table_size (self->pv->object_to_seq) == 0);
g_hash_table_destroy (self->pv->object_to_seq);
- g_assert (g_hash_table_size (self->pv->selected) == 0);
- if (self->pv->selected)
+ if (self->pv->selected) {
+ g_assert (g_hash_table_size (self->pv->selected) == 0);
g_hash_table_destroy (self->pv->selected);
- self->pv->selected = NULL;
+ self->pv->selected = NULL;
+ }
self->pv->columns = NULL;
for (i = 0; i < self->pv->n_columns; i++)