Commits

Jens Alfke committed 02ad6b2

Fixed leaks in MailUtils.

Comments (0)

Files changed (1)

                 [[[mail classForScriptingClass:@"to recipient"] alloc] initWithProperties:
                                                                  $dict({@"address", recipient})];
             [emailMessage.toRecipients addObject: theRecipient];
+            [theRecipient release];
         }
         
         /* add an attachment, if one was specified */
             
             /* add it to the list of attachments */
             [[emailMessage.content attachments] addObject: theAttachment];
+            [theAttachment release];
         }
         
         /* add the object to the mail app  */