summaryrefslogtreecommitdiffstats
path: root/Tests/LoadCommandOneConfig
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-09-17 14:38:34 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-09-17 14:38:34 (GMT)
commit222b04f6d9a73d202faea473ab1c5c7991ca75e6 (patch)
treea1643447088f62e6e0031d727b290a0dd35ece2e /Tests/LoadCommandOneConfig
parent0a2f6c876caa216e9ce9fdc662b8d70335d4738a (diff)
downloadCMake-222b04f6d9a73d202faea473ab1c5c7991ca75e6.zip
CMake-222b04f6d9a73d202faea473ab1c5c7991ca75e6.tar.gz
CMake-222b04f6d9a73d202faea473ab1c5c7991ca75e6.tar.bz2
added Destructor
Diffstat (limited to 'Tests/LoadCommandOneConfig')
-rw-r--r--Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c b/Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c
index a4005dc..f1e1f21 100644
--- a/Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c
+++ b/Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c
@@ -45,6 +45,15 @@ void FinalPass(void *inf, void *mf)
}
}
+void Destructor(void *inf)
+{
+ cmLoadedCommandInfo *info = (cmLoadedCommandInfo *)inf;
+ // get our client data from initial pass
+ cmVTKWrapTclData *cdata =
+ (cmVTKWrapTclData *)info->CAPI->GetClientData(info);
+ free(cdata);
+}
+
CM_PLUGIN_EXPORT const char *cmGetName()
{
return "CMAKE_TEST_COMMAND";
@@ -54,6 +63,7 @@ void CM_PLUGIN_EXPORT cmInitializeCommand(cmLoadedCommandInfo *info)
{
info->InitialPass = InitialPass;
info->FinalPass = FinalPass;
+ info->Destructor = Destructor;
info->m_Inherited = 0;
}