Mercurial > pidgin.yaz
comparison pidgin/gtkconv-theme.c @ 32683:a7f0fdce9a0e
Don't leak variant name and list.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sat, 24 Sep 2011 21:18:17 +0000 |
parents | 5cf6c4a8dcab |
children | 459ffa11348e |
comparison
equal
deleted
inserted
replaced
32682:5cf6c4a8dcab | 32683:a7f0fdce9a0e |
---|---|
452 | 452 |
453 static void | 453 static void |
454 pidgin_conv_theme_finalize(GObject *obj) | 454 pidgin_conv_theme_finalize(GObject *obj) |
455 { | 455 { |
456 PidginConvThemePrivate *priv; | 456 PidginConvThemePrivate *priv; |
457 GList *list; | |
457 | 458 |
458 priv = PIDGIN_CONV_THEME_GET_PRIVATE(obj); | 459 priv = PIDGIN_CONV_THEME_GET_PRIVATE(obj); |
459 | 460 |
460 g_free(priv->template_html); | 461 g_free(priv->template_html); |
461 g_free(priv->header_html); | 462 g_free(priv->header_html); |
473 g_free(priv->outgoing_next_context_html); | 474 g_free(priv->outgoing_next_context_html); |
474 g_free(priv->basestyle_css); | 475 g_free(priv->basestyle_css); |
475 | 476 |
476 if (priv->info) | 477 if (priv->info) |
477 g_hash_table_destroy(priv->info); | 478 g_hash_table_destroy(priv->info); |
479 | |
480 list = priv->variants; | |
481 while (list) { | |
482 g_free(list->data); | |
483 list = g_list_delete_link(list, list); | |
484 } | |
485 g_free(priv->variant); | |
478 | 486 |
479 parent_class->finalize(obj); | 487 parent_class->finalize(obj); |
480 } | 488 } |
481 | 489 |
482 static void | 490 static void |