Skip to content

Commit

Permalink
Merge pull request #6 from mtasaka/remove-gmem-warn
Browse files Browse the repository at this point in the history
Deprecate usage of GLib memory profiler on 2.46 and above
  • Loading branch information
yama-natuki committed May 30, 2018
2 parents c1c9d64 + 2bc19bd commit 317097c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.cpp
Expand Up @@ -481,6 +481,7 @@ int main( int argc, char **argv )
}
#endif

#if ! GLIB_CHECK_VERSION(2, 46, 0)
#ifdef _DEBUG_MEM_PROFILE
g_mem_set_vtable( glib_mem_profiler_table );
atexit( g_mem_profile );
Expand All @@ -494,6 +495,7 @@ int main( int argc, char **argv )
vtable.try_malloc = malloc;
vtable.try_realloc = realloc;
g_mem_set_vtable( &vtable );
#endif
#endif

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

0 comments on commit 317097c

Please sign in to comment.