Mercurial > pidgin.yaz
comparison src/stringref.c @ 7784:136c65e68fb1
[gaim-migrate @ 8429]
as Robot101 kindly pointed out, gaim_stringref_printf should do something (anything!) with the refcount
committer: Tailor Script <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Sun, 07 Dec 2003 15:23:17 +0000 |
parents | 85abf91f2387 |
children | 203a18e56dc6 |
comparison
equal
deleted
inserted
replaced
7783:565369d12874 | 7784:136c65e68fb1 |
---|---|
53 | 53 |
54 va_start(ap, format); | 54 va_start(ap, format); |
55 newref = g_malloc(sizeof(GaimStringref) + g_printf_string_upper_bound(format, ap)); | 55 newref = g_malloc(sizeof(GaimStringref) + g_printf_string_upper_bound(format, ap)); |
56 vsprintf(newref->value, format, ap); | 56 vsprintf(newref->value, format, ap); |
57 va_end(ap); | 57 va_end(ap); |
58 newref->ref = 1; | |
58 | 59 |
59 return newref; | 60 return newref; |
60 } | 61 } |
61 | 62 |
62 GaimStringref *gaim_stringref_ref(GaimStringref *stringref) | 63 GaimStringref *gaim_stringref_ref(GaimStringref *stringref) |