GNOME Bugzilla – Bug 763309
ahcsrc: add finalize function
Last modified: 2016-05-31 11:58:38 UTC
dispose function can be called multiple times in theory, checking NULL or setting NULL is required in the function.
Created attachment 323384 [details] [review] add finalize
Comment on attachment 323384 [details] [review] add finalize Why not just move everything from dispose() to finalize() here? There's no need to have it in dispose(). Also g_mutex_clear() should be safe to call on an already cleared mutex.
Created attachment 328787 [details] [review] move resource finalization to finalize I'm sorry I almost forgot this.
Thanks! commit fe62233b83840ae738871ef78d7dd814de8690ca Author: Justin Kim <justin.kim@collabora.com> Date: Tue May 31 18:58:43 2016 +0900 ahcsrc: release resources in 'finalize' function In general, 'dispose' function is used for dropping all references and 'finalize' is called for releasing instances. https://bugzilla.gnome.org/show_bug.cgi?id=763309