~cairo-dock-team/cairo-dock-core/cairo-dock

« back to all changes in this revision

Viewing changes to src/gldit/cairo-dock-file-manager.c

  • Committer: Matthieu Baerts
  • Date: 2012-08-02 17:43:50 UTC
  • Revision ID: matttbe@gmail.com-20120802174350-bke4ipk69fe86m33
GThread: Fixed a memory leaks (Virtual Memory) with GLib >= 2.32
 Now a GThread created with g_thread_(try_)new is joinable
  and should be freed with g_thread_unref (or g_thread_join)
  (ok... except that this information is only available with the description of g_thread_new and not g_thread_try_new... :) )
+ a g_free was missing for a gchar (rarely used) in icon-factory

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
                // Some systems restrict the length of name to 16 bytes. 
133
133
                gchar *cThreadName = g_strndup (cURI, 15);
134
134
                GThread* pThread = g_thread_try_new (cThreadName, (GThreadFunc) _cairo_dock_fm_launch_uri_threaded, (gpointer) cThreadURI, &erreur);
 
135
                g_thread_unref (pThread);
135
136
                g_free (cThreadName);
136
137
                #endif
137
138
                if (erreur != NULL)