Re: [evolution-patches] about calendar factory!



On Thu, 2003-06-19 at 08:19, jack wrote:
> JP & other calendar guys:
>          When I used the evolution (with hydrogen), I was confused by 
> the alarm-notify.
> when I exit the evolution, the hydrogen exit too, but the 
> evolution-alarm-notify did not exit.
> wehn i run evolution and hydrogen again, all the alarm i set can not work.

> 
> ______________________________________________________________________
> Index: calendar/cal-client/cal-client.c
> ===================================================================
> RCS file: /cvs/gnome/evolution/calendar/cal-client/cal-client.c,v
> retrieving revision 1.118
> diff -u -r1.118 cal-client.c
> --- calendar/cal-client/cal-client.c	4 Jun 2003 15:07:15 -0000	1.118
> +++ calendar/cal-client/cal-client.c	19 Jun 2003 03:50:41 -0000
> @@ -735,8 +735,10 @@
>  	CORBA_Environment ev;
>  	int i;
>  
> -	if (factories != NULL)
> -		return factories;
> +	if (factories != NULL) {
> +		g_list_free (factories);
> +		factories = NULL;
> +	}
>  
>  	CORBA_exception_init (&ev);
>  
in this case, it's probably better to just not have 'factories' to be a
static variable, since we won't reuse it. So I would just make it not
static, and not even g_list_free it, since this is already done in
destroy_factories (priv->factories is the value returned by
get_factories).

cheers




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]