[evolution-rss] fix subject on enclosured feed messages



commit 3e3363d0fa3010e3c8ed8fd471a87e11642aa99f
Author: Lucian Langa <lucilanga gnome org>
Date:   Mon Feb 23 22:15:41 2015 +0100

    fix subject on enclosured feed messages

 src/rss.c |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/src/rss.c b/src/rss.c
index e80c549..e79f7de 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -4082,8 +4082,14 @@ create_mail(create_feed *CF)
 #endif
                        }
                }
-               if (!c)
+               if (!c) {
+#if (DATASERVER_VERSION >= 2031001)
+                       g_object_unref(mp);
+#else
+                       camel_object_unref(mp);
+#endif
                        goto out;
+               }
 #if EVOLUTION_VERSION >= 23100
                camel_medium_set_content((CamelMedium *)new, (CamelDataWrapper *)mp);
 #else
@@ -4121,6 +4127,13 @@ create_mail(create_feed *CF)
 #else
                        camel_object_unref(msgp);
 #endif
+               } else {
+#if (DATASERVER_VERSION >= 2031001)
+                       g_object_unref(mp);
+#else
+                       camel_object_unref(mp);
+#endif
+                       goto out;
                }
 #if EVOLUTION_VERSION >= 23100
                camel_medium_set_content((CamelMedium *)new, (CamelDataWrapper *)mp);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]