[gmime] Fixed unit tests and examples



commit e47ba7c2f839a849221496089e6649db685b90e9
Author: Jeffrey Stedfast <jestedfa microsoft com>
Date:   Wed Mar 15 11:52:05 2017 -0400

    Fixed unit tests and examples

 examples/imap-example.c |    4 ++--
 tests/test-headers.c    |    4 ++--
 tests/test-mime.c       |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/examples/imap-example.c b/examples/imap-example.c
index 9b10d41..4859c39 100644
--- a/examples/imap-example.c
+++ b/examples/imap-example.c
@@ -691,11 +691,11 @@ bodystruct_free (struct _bodystruct *node)
                g_free (node->content.type);
                g_free (node->content.subtype);
                if (node->content.params)
-                       g_mime_param_destroy (node->content.params);
+                       g_mime_param_free (node->content.params);
                
                g_free (node->disposition.type);
                if (node->disposition.params)
-                       g_mime_param_destroy (node->disposition.params);
+                       g_mime_param_free (node->disposition.params);
                
                g_free (node->encoding);
                
diff --git a/tests/test-headers.c b/tests/test-headers.c
index 7401a5e..9ae9f63 100644
--- a/tests/test-headers.c
+++ b/tests/test-headers.c
@@ -159,7 +159,7 @@ test_remove (void)
                testsuite_check_failed ("remove last header: %s", ex->message);
        } finally;
        
-       g_mime_header_list_destroy (list);
+       g_mime_header_list_free (list);
 }
 
 static void
@@ -213,7 +213,7 @@ test_remove_at (void)
                testsuite_check_failed ("remove last header: %s", ex->message);
        } finally;
        
-       g_mime_header_list_destroy (list);
+       g_mime_header_list_free (list);
 }
 
 static void
diff --git a/tests/test-mime.c b/tests/test-mime.c
index 34bf6cc..4ddbac2 100644
--- a/tests/test-mime.c
+++ b/tests/test-mime.c
@@ -577,7 +577,7 @@ test_rfc2184 (GMimeParserOptions *options)
                } finally;
                
                if (params != NULL)
-                       g_mime_param_destroy (params);
+                       g_mime_param_free (params);
                
                g_string_truncate (str, n);
        }


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