<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<br><br>I'm new to sip, so please be patient.<br>I'm trying to wrap a C struct that has some pointer members.<br>It comes with a factory that dynamically allocates memory addressed by these pointers.<br>Now, when the struct is freed how can I make sure this memory is freed?<br>I don't suppose sip does it automatically?<br>Even if so, I'm sure there are situations where upon destruction of the struct some cleanup is required which sip couldn't possibly guess.<br>So is there a way to specify handwritten destructor code in this situation?<br><br>Thanks,<br>Paul<br><br>                                          </div></body>
</html>