Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
Drop usage of the deprecated GAllocator
Browse files Browse the repository at this point in the history
  • Loading branch information
Jajcus committed Jul 25, 2013
1 parent 8aa28cf commit ab751ec
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ static int debug_level=0;
static FILE *log_file=NULL;
static gboolean use_syslog=FALSE;
static char *pid_filename=NULL;
static GAllocator* list_allocator;

GList *admins=NULL;
time_t start_time=0;
Expand Down Expand Up @@ -458,10 +457,6 @@ int i;
if (optind==argc-1) config_file=g_strdup(argv[optind]);
else config_file=g_strdup_printf("%s/%s",SYSCONFDIR,"jggtrans.xml");

/* own allocator will be usefull for mem-leak tracing */
list_allocator=g_allocator_new("la",128);
g_list_push_allocator(list_allocator);

lh=g_log_set_handler(NULL,G_LOG_FLAG_FATAL | G_LOG_LEVEL_ERROR
| G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING
| G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_INFO
Expand Down Expand Up @@ -661,9 +656,6 @@ int i;

g_log_remove_handler(NULL,lh);

g_list_pop_allocator();
g_allocator_free(list_allocator);

if (log_file!=NULL){
fclose(log_file);
log_file=NULL;
Expand Down

0 comments on commit ab751ec

Please sign in to comment.