glib/tsrc/BC/src/misc_test.c
changeset 18 47c74d1534e1
parent 0 e4d67989cc36
child 45 4b03adbd26ca
child 57 2efc27d87e1c
--- a/glib/tsrc/BC/src/misc_test.c	Tue Feb 02 02:01:42 2010 +0200
+++ b/glib/tsrc/BC/src/misc_test.c	Fri Apr 16 16:46:38 2010 +0300
@@ -29,7 +29,7 @@
 #include <string.h>
 #include "glib.h"
 #include <stdlib.h>
-
+#include <glib/gprintf.h>
 
 #ifdef SYMBIAN
 #include "mrt2_glib2_test.h"
@@ -204,11 +204,11 @@
 	err.message = "test";
 	err_copy = g_error_copy(&err);
 	g_assert(err_copy->code == 5 && err_copy->code == 5 && !strcmp(err_copy->message,"test"));
-	g_free(err_copy);
+	g_error_free(err_copy);
 	err_copy = NULL;
 	err_copy = g_error_new_literal(err.domain,err.code,"test is %s");
 	g_assert(err_copy->code == 5 && err_copy->code == 5 && !strcmp(err_copy->message,"test is %s"));
-	g_free(err_copy);
+	g_error_free(err_copy);
 	err_copy = NULL;
 }
 
@@ -318,4 +318,4 @@
   	#endif /* EMULATOR */
 	
 	return 0;
-}
\ No newline at end of file
+}