title: Usage of GHashTable from GLib?
body: <p>I am trying to use a <a href="http://developer.gnome.org/glib/stable/glib-Hash-Tables.html" rel="nofollow"><code>GHashTable</code></a> in my code. I will be using an <code>int</code> as my key and a structure as my value. My questions:</p>
  
  <ul>
  <li>Will I have to allocate memory for the <code>int</code> I am using as a key, or can I just use a local variable in the functions for insert and lookup?</li>
  <li>What does <code>g_int_to_pointer</code> do?</li>
  <li>If I am writing a <code>GDestroyFunction</code>, will I have to free any memory?</li>
  </ul>