diff options
Diffstat (limited to 'camel/camel-mime-body-part.c')
-rw-r--r-- | camel/camel-mime-body-part.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/camel/camel-mime-body-part.c b/camel/camel-mime-body-part.c index 3b0c547bfa..570c2fe6d4 100644 --- a/camel/camel-mime-body-part.c +++ b/camel/camel-mime-body-part.c @@ -96,7 +96,9 @@ camel_mime_body_part_new () static void _set_parent (CamelMimeBodyPart *mime_body_part, CamelMultipart *multipart) { + if (mime_body_part->parent) gtk_object_unref (GTK_OBJECT (mime_body_part->parent)); mime_body_part->parent = multipart; + if (multipart) gtk_object_ref (GTK_OBJECT (multipart)); } |