Skip to content

Commit

Permalink
Remove deprecated g_mem_set_vtable() (#250)
Browse files Browse the repository at this point in the history
RFC 0006[1]で動作環境を2016年以降のディストロに更新したため
glib 2.46から廃止予定[2]になっている g_mem_set_vtable を呼び出すコード
を削除する。

[1]: https://github.com/JDimproved/rfcs/blob/d6469b2/docs/0006-platform-support.md
[2]: https://developer.gnome.org/glib/2.46/glib-Memory-Allocation.html#g-mem-set-vtable
  • Loading branch information
ma8ma committed Apr 26, 2020
1 parent 46ebf1b commit 5e03dd3
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -460,23 +460,6 @@ int main( int argc, char **argv )
}
#endif

#if !GLIB_CHECK_VERSION(2,45,5)
#ifdef _DEBUG_MEM_PROFILE
g_mem_set_vtable( glib_mem_profiler_table );
atexit( g_mem_profile );
#else
GMemVTable vtable;
vtable = *glib_mem_profiler_table;
vtable.malloc = malloc;
vtable.realloc = realloc;
vtable.free = free;
vtable.calloc = calloc;
vtable.try_malloc = malloc;
vtable.try_realloc = realloc;
g_mem_set_vtable( &vtable );
#endif
#endif

Gtk::Main m( &argc, &argv );

// XSMPによるセッション管理
Expand Down

0 comments on commit 5e03dd3

Please sign in to comment.