[gtk] testsuite: Fix leak



commit 49d994ddc2be759ef8a0e93739410ba4d37bccd0
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Tue May 21 17:36:00 2019 +0200

    testsuite: Fix leak

 testsuite/css/parser/test-css-parser.c | 1 +
 testsuite/gsk/node-parser.c            | 2 ++
 2 files changed, 3 insertions(+)
---
diff --git a/testsuite/css/parser/test-css-parser.c b/testsuite/css/parser/test-css-parser.c
index c18c3e0585..4ea608ee1d 100644
--- a/testsuite/css/parser/test-css-parser.c
+++ b/testsuite/css/parser/test-css-parser.c
@@ -101,6 +101,7 @@ diff_with_file (const char  *file1,
       return NULL;
     }
 
+  g_object_unref (process);
   g_bytes_unref (input);
 
   return output;
diff --git a/testsuite/gsk/node-parser.c b/testsuite/gsk/node-parser.c
index f0e1e7d889..69dba1c49f 100644
--- a/testsuite/gsk/node-parser.c
+++ b/testsuite/gsk/node-parser.c
@@ -90,6 +90,8 @@ diff_with_file (const char  *file1,
       return NULL;
     }
 
+  g_object_unref (process);
+
   return output;
 }
 


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