comparison src/stringref.c @ 7788:6741cac0bf52

[gaim-migrate @ 8434] whoops, missed a stringref_free committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Sun, 07 Dec 2003 16:34:39 +0000
parents 203a18e56dc6
children d52f01b821df
comparison
equal deleted inserted replaced
7787:666f672a869a 7788:6741cac0bf52
95 { 95 {
96 g_return_if_fail(stringref != NULL); 96 g_return_if_fail(stringref != NULL);
97 if ((--(stringref->ref) & 0x7fffffff) == 0) { 97 if ((--(stringref->ref) & 0x7fffffff) == 0) {
98 if (stringref->ref & 0x80000000) 98 if (stringref->ref & 0x80000000)
99 gclist = g_list_remove(gclist, stringref); 99 gclist = g_list_remove(gclist, stringref);
100 g_free(stringref); 100 stringref_free(stringref);
101 } 101 }
102 } 102 }
103 103
104 const char *gaim_stringref_value(const GaimStringref *stringref) 104 const char *gaim_stringref_value(const GaimStringref *stringref)
105 { 105 {