Back to index

im-sdk  12.3.91
test_memory.c
Go to the documentation of this file.
00001 /*
00002 
00003 run the following command to get memory leak report:
00004 
00005 valgrind --leak-check=full ./test
00006 
00007 */
00008 
00009 #include <stdio.h>
00010 
00011 #include "le_info.h"
00012 #include "le_session.h"
00013 #include "le_desktop.h"
00014 
00015 int main (int argc, char **argv)
00016 {
00017     LeInfoRec *le_info;
00018     LeDesktopContextRec *le_desktop_context;
00019     LeSessionContextRec *le_session_context;
00020 
00021     le_info = (LeInfoRec *)le_info_new();
00022     le_info_print(le_info);
00023 
00024     le_session_context = (LeSessionContextRec *)le_session_context_new();
00025     le_session_context_destroy (le_session_context);
00026 
00027     le_desktop_context = (LeDesktopContextRec *)le_desktop_context_new();
00028     le_desktop_context_destroy (le_desktop_context);
00029 
00030     le_info_destroy(le_info);
00031 }
00032