changeset 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 565369d12874
children d5ee9c6da122
files src/stringref.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/stringref.c	Sun Dec 07 08:55:37 2003 +0000
+++ b/src/stringref.c	Sun Dec 07 15:23:17 2003 +0000
@@ -55,6 +55,7 @@
 	newref = g_malloc(sizeof(GaimStringref) + g_printf_string_upper_bound(format, ap));
 	vsprintf(newref->value, format, ap);
 	va_end(ap);
+	newref->ref = 1;
 
 	return newref;
 }