Mercurial > pidgin
comparison src/stringref.c @ 7790:c2e391c480b6
[gaim-migrate @ 8436]
Oh, and this creates unnecessary output, so I'm changing it.
committer: Tailor Script <tailor@pidgin.im>
| author | Ethan Blanton <elb@pidgin.im> |
|---|---|
| date | Sun, 07 Dec 2003 16:41:24 +0000 |
| parents | d52f01b821df |
| children | 069ee4ecb56a |
comparison
equal
deleted
inserted
replaced
| 7789:d52f01b821df | 7790:c2e391c480b6 |
|---|---|
| 92 return stringref; | 92 return stringref; |
| 93 } | 93 } |
| 94 | 94 |
| 95 void gaim_stringref_unref(GaimStringref *stringref) | 95 void gaim_stringref_unref(GaimStringref *stringref) |
| 96 { | 96 { |
| 97 g_return_if_fail(stringref != NULL); | 97 if (stringref == NULL) |
| 98 return; | |
| 98 if ((--(stringref->ref) & 0x7fffffff) == 0) { | 99 if ((--(stringref->ref) & 0x7fffffff) == 0) { |
| 99 if (stringref->ref & 0x80000000) | 100 if (stringref->ref & 0x80000000) |
| 100 gclist = g_list_remove(gclist, stringref); | 101 gclist = g_list_remove(gclist, stringref); |
| 101 stringref_free(stringref); | 102 stringref_free(stringref); |
| 102 } | 103 } |
