Fix incorrect call to fm_module_unregister_type() that lead to crash.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Sun, 5 Jan 2014 14:48:21 +0000 (16:48 +0200)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Sun, 5 Jan 2014 14:48:21 +0000 (16:48 +0200)
src/pcmanfm.c

index 91e4a72..f670135 100644 (file)
@@ -284,10 +284,10 @@ int main(int argc, char** argv)
     }
 
 #if FM_CHECK_VERSION(1, 2, 0)
-    fm_module_unregister_type("tab_page_status");
     for (l = _tab_page_modules; l; l = l->next)
         if (((FmTabPageStatusInit*)l->data)->finalize)
             ((FmTabPageStatusInit*)l->data)->finalize();
+    fm_module_unregister_type("tab_page_status");
     g_list_free(_tab_page_modules);
     _tab_page_modules = NULL;
 #endif