projects
/
bluesky.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f2b641
)
Add a warning to catch possible refcounting bugs.
author
Michael Vrable
<mvrable@cs.ucsd.edu>
Fri, 22 Jan 2010 05:19:31 +0000
(21:19 -0800)
committer
Michael Vrable
<mvrable@cs.ucsd.edu>
Fri, 22 Jan 2010 05:19:31 +0000
(21:19 -0800)
Not actually needed (was added to track down the corruption fixed in the
last changeset, which was unrelated), but probably worth keeping around.
bluesky/util.c
patch
|
blob
|
history
diff --git
a/bluesky/util.c
b/bluesky/util.c
index
eab6a14
..
2e6f0aa
100644
(file)
--- a/
bluesky/util.c
+++ b/
bluesky/util.c
@@
-108,6
+108,8
@@
void bluesky_string_resize(BlueSkyRCStr *string, gsize len)
if (string->len == len)
return;
+ g_warn_if_fail(string->refcount == 1);
+
string->data = g_realloc(string->data, len);
string->len = len;
}