mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-24 22:12:16 +02:00 
			
		
		
		
	Fix a memory leak. (#94550, Sebastian Rittau)
Mon Oct 14 15:51:05 2002 Owen Taylor <otaylor@redhat.com> * glib/gdate.c (g_date_fill_parse_tokens): Fix a memory leak. (#94550, Sebastian Rittau)
This commit is contained in:
		| @@ -1,3 +1,8 @@ | |||||||
|  | Mon Oct 14 15:51:05 2002  Owen Taylor  <otaylor@redhat.com> | ||||||
|  |  | ||||||
|  | 	* glib/gdate.c (g_date_fill_parse_tokens): Fix a memory | ||||||
|  | 	leak. (#94550, Sebastian Rittau) | ||||||
|  |  | ||||||
| Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com> | Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com> | ||||||
|  |  | ||||||
| 	* glib/gcompletion.[ch] (g_completion_complete): Make | 	* glib/gcompletion.[ch] (g_completion_complete): Make | ||||||
|   | |||||||
| @@ -1,3 +1,8 @@ | |||||||
|  | Mon Oct 14 15:51:05 2002  Owen Taylor  <otaylor@redhat.com> | ||||||
|  |  | ||||||
|  | 	* glib/gdate.c (g_date_fill_parse_tokens): Fix a memory | ||||||
|  | 	leak. (#94550, Sebastian Rittau) | ||||||
|  |  | ||||||
| Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com> | Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com> | ||||||
|  |  | ||||||
| 	* glib/gcompletion.[ch] (g_completion_complete): Make | 	* glib/gcompletion.[ch] (g_completion_complete): Make | ||||||
|   | |||||||
| @@ -1,3 +1,8 @@ | |||||||
|  | Mon Oct 14 15:51:05 2002  Owen Taylor  <otaylor@redhat.com> | ||||||
|  |  | ||||||
|  | 	* glib/gdate.c (g_date_fill_parse_tokens): Fix a memory | ||||||
|  | 	leak. (#94550, Sebastian Rittau) | ||||||
|  |  | ||||||
| Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com> | Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com> | ||||||
|  |  | ||||||
| 	* glib/gcompletion.[ch] (g_completion_complete): Make | 	* glib/gcompletion.[ch] (g_completion_complete): Make | ||||||
|   | |||||||
| @@ -1,3 +1,8 @@ | |||||||
|  | Mon Oct 14 15:51:05 2002  Owen Taylor  <otaylor@redhat.com> | ||||||
|  |  | ||||||
|  | 	* glib/gdate.c (g_date_fill_parse_tokens): Fix a memory | ||||||
|  | 	leak. (#94550, Sebastian Rittau) | ||||||
|  |  | ||||||
| Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com> | Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com> | ||||||
|  |  | ||||||
| 	* glib/gcompletion.[ch] (g_completion_complete): Make | 	* glib/gcompletion.[ch] (g_completion_complete): Make | ||||||
|   | |||||||
| @@ -1,3 +1,8 @@ | |||||||
|  | Mon Oct 14 15:51:05 2002  Owen Taylor  <otaylor@redhat.com> | ||||||
|  |  | ||||||
|  | 	* glib/gdate.c (g_date_fill_parse_tokens): Fix a memory | ||||||
|  | 	leak. (#94550, Sebastian Rittau) | ||||||
|  |  | ||||||
| Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com> | Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com> | ||||||
|  |  | ||||||
| 	* glib/gcompletion.[ch] (g_completion_complete): Make | 	* glib/gcompletion.[ch] (g_completion_complete): Make | ||||||
|   | |||||||
| @@ -1,3 +1,8 @@ | |||||||
|  | Mon Oct 14 15:51:05 2002  Owen Taylor  <otaylor@redhat.com> | ||||||
|  |  | ||||||
|  | 	* glib/gdate.c (g_date_fill_parse_tokens): Fix a memory | ||||||
|  | 	leak. (#94550, Sebastian Rittau) | ||||||
|  |  | ||||||
| Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com> | Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com> | ||||||
|  |  | ||||||
| 	* glib/gcompletion.[ch] (g_completion_complete): Make | 	* glib/gcompletion.[ch] (g_completion_complete): Make | ||||||
|   | |||||||
| @@ -1,3 +1,8 @@ | |||||||
|  | Mon Oct 14 15:51:05 2002  Owen Taylor  <otaylor@redhat.com> | ||||||
|  |  | ||||||
|  | 	* glib/gdate.c (g_date_fill_parse_tokens): Fix a memory | ||||||
|  | 	leak. (#94550, Sebastian Rittau) | ||||||
|  |  | ||||||
| Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com> | Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com> | ||||||
|  |  | ||||||
| 	* glib/gcompletion.[ch] (g_completion_complete): Make | 	* glib/gcompletion.[ch] (g_completion_complete): Make | ||||||
|   | |||||||
| @@ -528,7 +528,7 @@ g_date_fill_parse_tokens (const gchar *str, GDateParseTokens *pt) | |||||||
|               if (found != NULL) |               if (found != NULL) | ||||||
|                 { |                 { | ||||||
|                   pt->month = i; |                   pt->month = i; | ||||||
| 		  return; | 		  break; | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
| 	   | 	   | ||||||
| @@ -539,12 +539,14 @@ g_date_fill_parse_tokens (const gchar *str, GDateParseTokens *pt) | |||||||
|               if (found != NULL) |               if (found != NULL) | ||||||
|                 { |                 { | ||||||
|                   pt->month = i; |                   pt->month = i; | ||||||
|                   return; | 		  break; | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|  |  | ||||||
|           ++i; |           ++i; | ||||||
|         }       |         } | ||||||
|  |  | ||||||
|  |       g_free (normalized); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user