Mercurial > pidgin
comparison src/dialogs.c @ 308:e5fa88351dc8
[gaim-migrate @ 318]
Hopefully a few memleak fixes.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Fri, 02 Jun 2000 05:22:08 +0000 |
| parents | b32c83750104 |
| children | 0a8b4edc4732 |
comparison
equal
deleted
inserted
replaced
| 307:721d2dda7be3 | 308:e5fa88351dc8 |
|---|---|
| 1961 int i, j = 0, k = 0; | 1961 int i, j = 0, k = 0; |
| 1962 struct conversation *c = gtk_object_get_user_data(GTK_OBJECT(fontsel)); | 1962 struct conversation *c = gtk_object_get_user_data(GTK_OBJECT(fontsel)); |
| 1963 | 1963 |
| 1964 if (c) | 1964 if (c) |
| 1965 { | 1965 { |
| 1966 g_free(c->current_fontname); | 1966 char *tmp = gtk_font_selection_get_font_name(fontsel); |
| 1967 g_free(c->current_fontface); | 1967 strncpy(c->current_fontname, tmp, sizeof(c->current_fontname)); |
| 1968 c->current_fontface = g_malloc(64); | |
| 1969 c->current_fontname = gtk_font_selection_get_font_name(fontsel); | |
| 1970 | 1968 |
| 1971 for (i = 0; i < strlen(c->current_fontname); i++) | 1969 for (i = 0; i < strlen(c->current_fontname); i++) |
| 1972 { | 1970 { |
| 1973 if (c->current_fontname[i] == '-') | 1971 if (c->current_fontname[i] == '-') |
| 1974 { | 1972 { |
