comparison libpurple/plugins/log_reader.c @ 18246:e236b3bd4542

Eliminate some leaks.
author Richard Laager <rlaager@wiktel.com>
date Sun, 24 Jun 2007 22:20:15 +0000
parents 30b67808b85b
children 97671eb4991e
comparison
equal deleted inserted replaced
18245:30b67808b85b 18246:e236b3bd4542
312 g_return_if_fail(log != NULL); 312 g_return_if_fail(log != NULL);
313 313
314 data = log->logger_data; 314 data = log->logger_data;
315 315
316 g_free(data->path); 316 g_free(data->path);
317 g_free(data);
317 } 318 }
318 319
319 320
320 /***************************************************************************** 321 /*****************************************************************************
321 * Fire Logger * 322 * Fire Logger *
1166 if (data->last_log) 1167 if (data->last_log)
1167 xmlnode_free(data->root); 1168 xmlnode_free(data->root);
1168 1169
1169 if (data->text) 1170 if (data->text)
1170 g_string_free(data->text, FALSE); 1171 g_string_free(data->text, FALSE);
1172
1173 g_free(data);
1171 } 1174 }
1172 1175
1173 1176
1174 /***************************************************************************** 1177 /*****************************************************************************
1175 * Trillian Logger * 1178 * Trillian Logger *
1714 1717
1715 data = log->logger_data; 1718 data = log->logger_data;
1716 1719
1717 g_free(data->path); 1720 g_free(data->path);
1718 g_free(data->their_nickname); 1721 g_free(data->their_nickname);
1719 1722 g_free(data);
1720 } 1723 }
1721 1724
1722 /***************************************************************************** 1725 /*****************************************************************************
1723 * QIP Logger * 1726 * QIP Logger *
1724 *****************************************************************************/ 1727 *****************************************************************************/
2121 g_return_if_fail(log != NULL); 2124 g_return_if_fail(log != NULL);
2122 2125
2123 data = log->logger_data; 2126 data = log->logger_data;
2124 2127
2125 g_free(data->path); 2128 g_free(data->path);
2129 g_free(data);
2126 } 2130 }
2127 2131
2128 /***************************************************************************** 2132 /*****************************************************************************
2129 * Plugin Code * 2133 * Plugin Code *
2130 *****************************************************************************/ 2134 *****************************************************************************/