I'm developing a custom browser for the Linux plataform, I'm using 
gtkmozembed and Gtkmm (C++).

I have 2 forms, the first one is a login screen , the user writes its 
userid and pass and then he can login, then the application launches the 
second form, in this one I have the browser, everything is going just 
fine but when the user closes the second form the memory used for it is 
not released so if a second user launch the browser he has less aviable 
memory then the first one and so.

I'm using  cat /proc/meminfo to see the memory usage and the output is 
something like:


[root@dmadrid root]# cat /proc/meminfo  | grep MemFree
MemFree:        112880 kB                before launch the app.
[root@dmadrid root]# cat /proc/meminfo  | grep MemFree
MemFree:        109876 kB                app.launched, just login screen
[root@dmadrid root]# cat /proc/meminfo  | grep MemFree
MemFree:         84344 kB                first time the browser launched
[root@dmadrid root]# cat /proc/meminfo  | grep MemFree
MemFree:         83944 kB                first browser closed, back to 
login screen
[root@dmadrid root]# cat /proc/meminfo  | grep MemFree
MemFree:         79388 kB                second browser open
[root@dmadrid root]# cat /proc/meminfo  | grep MemFree
MemFree:         75172 kB                second browser closed, back to 
login screen
[root@dmadrid root]# cat /proc/meminfo  | grep MemFree
MemFree:         95252 kB                app. closed
[root@dmadrid root]# cat /proc/meminfo  | grep MemFree
MemFree:         95252 kB
[root@dmadrid root]#


I would like to how can I release the memory when I close the second 
application.

Thanks in advance,

David Madrid R.


Reply via email to