# HG changeset patch # User Christian Hammond # Date 1091669520 0 # Node ID 22928adecb8421b00d5d112c5419cc2d8b1b6485 # Parent 14c1ffd053e5d7e3205532a742618cb1e0993913 [gaim-migrate @ 10519] Fixed a memory leak in plugin IPC registering. Although the parameter value types were all being freed when a command was unregistered, the arrays holding them were not. committer: Tailor Script diff -r 14c1ffd053e5 -r 22928adecb84 src/plugin.c --- a/src/plugin.c Wed Aug 04 23:39:24 2004 +0000 +++ b/src/plugin.c Thu Aug 05 01:32:00 2004 +0000 @@ -565,8 +565,13 @@ GaimPluginIpcCommand *ipc_command = (GaimPluginIpcCommand *)data; int i; - for (i = 0; i < ipc_command->num_params; i++) - gaim_value_destroy(ipc_command->params[i]); + if (ipc_command->params != NULL) + { + for (i = 0; i < ipc_command->num_params; i++) + gaim_value_destroy(ipc_command->params[i]); + + g_free(ipc_command->params); + } if (ipc_command->ret_value != NULL) gaim_value_destroy(ipc_command->ret_value);