GConf
- From: Anil Kumar Putla <anil gdit iiit net>
- To: gnome-devel-list gnome org
- Subject: GConf
- Date: 20 Oct 2002 17:23:23 +0530
Hi,
I would like to know whether gconf-1.0.9 is usable in application
programs. When i am using the library with mem profile it is showing
memory leaks. Am i not calling the appropriate destroy routines.
Bye,
Anil
#include <gconf/gconf-client.h>
#include <glib.h>
int main()
{
GConfClient *client;
extern GMemVTable *glib_mem_profiler_table;
gchar *str;
g_mem_set_vtable(glib_mem_profiler_table);
client = gconf_client_get_default ();
gconf_client_add_dir (client, "/apps/gedit-2",
GCONF_CLIENT_PRELOAD_NONE, NULL);
str = gconf_client_get_string (client, "/apps/gedit-2/preferences/editor/font/editor_font",
NULL);
if (str)
puts(str);
else
puts("NULL");
g_object_unref(G_OBJECT(client));
g_mem_profile();
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]