missed some g_ptr_array_free calls
[mono.git] / eglib / test / ptrarray.c
index 238d3f56400b06f93fe8e86f2031e5d7a554a0c0..b39cbd2ac151417e68ff7fe719dd94493cdcc027 100644 (file)
@@ -165,6 +165,8 @@ RESULT ptrarray_remove_index()
                        items[array->len - 2], array->pdata[array->len - 1]);
        }
 
+       g_ptr_array_free(array, TRUE);
+
        return OK;
 }
 
@@ -189,6 +191,8 @@ RESULT ptrarray_remove()
                return FAILED("Last item in GPtrArray not correct");
        }
 
+       g_ptr_array_free(array, TRUE);
+
        return OK;
 }