projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae96118
)
GMappedFile: remove nonatomic accesses to ref_count
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 6 Jun 2011 05:04:19 +0000
(
01:04
-0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 6 Jun 2011 05:04:19 +0000
(
01:04
-0400)
glib/gmappedfile.c
patch
|
blob
|
history
diff --git
a/glib/gmappedfile.c
b/glib/gmappedfile.c
index
2af6630
..
b786517
100644
(file)
--- a/
glib/gmappedfile.c
+++ b/
glib/gmappedfile.c
@@
-315,7
+315,6
@@
GMappedFile *
g_mapped_file_ref (GMappedFile *file)
{
g_return_val_if_fail (file != NULL, NULL);
- g_return_val_if_fail (file->ref_count > 0, file);
g_atomic_int_inc (&file->ref_count);
@@
-337,7
+336,6
@@
void
g_mapped_file_unref (GMappedFile *file)
{
g_return_if_fail (file != NULL);
- g_return_if_fail (file->ref_count > 0);
if (g_atomic_int_dec_and_test (&file->ref_count))
g_mapped_file_destroy (file);