Memory Management
- From: Jon Keating <jonkeating norcom2000 com>
- To: gtk-list redhat com
- Subject: Memory Management
- Date: Sun, 19 Mar 2000 22:29:30 -0600
I have some questions about memory management.. I couldn't find any
specific item in the tutorial or FAQ about it.
I'm using g_strdup_printf(...) to create my title..
gchar *title = g_strdup_printf(...);
Is it ok to g_free(title); at the bottom of this function? And I have
some structures that I create with g_new0(...) do I need to g_free()
it as well?
I'm just concernted about my program having memory leaks that can be
avoided.
Any advice or direction to a document will be greatly appreciated.
Thanks,
Jon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]