glib/tsrc/BC/src/misc_test.c
branchRCL_3
changeset 56 acd3cd4aaceb
parent 0 e4d67989cc36
child 45 4b03adbd26ca
child 57 2efc27d87e1c
--- a/glib/tsrc/BC/src/misc_test.c	Thu Aug 19 11:33:45 2010 +0300
+++ b/glib/tsrc/BC/src/misc_test.c	Tue Aug 31 16:54:36 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
+}