Don't leak cursor_hadjustment
svn path=/trunk/; revision=18099
This commit is contained in:
		| @ -1,3 +1,7 @@ | ||||
| 2007-06-10  Matthias Clasen  <mclasen@redhat.com> | ||||
|  | ||||
| 	* gtk/gtkentry.c (gtk_entry_finalize): Don't leak cursor_hadjustment. | ||||
|  | ||||
| 2007-06-10  Matthias Clasen  <mclasen@redhat.com> | ||||
|  | ||||
| 	* gdk/x11/gdkspawn-x11.c (set_environment): Handle child_setup | ||||
|  | ||||
| @ -1242,6 +1242,9 @@ gtk_entry_finalize (GObject *object) | ||||
|       entry->text = NULL; | ||||
|     } | ||||
|  | ||||
|   if (priv->cursor_hadjustment) | ||||
|     g_object_unref (priv->cursor_hadjustment); | ||||
|  | ||||
|   G_OBJECT_CLASS (gtk_entry_parent_class)->finalize (object); | ||||
| } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Matthias Clasen
					Matthias Clasen