[atk] atksocket: Fix typo - parameter is _obj not obj. Set freed to NULL.



commit 98c1ff473a2eea42a4c87519cffd23614f88b6ee
Author: Alban Browaeys <prahal yahoo com>
Date:   Wed May 1 10:48:28 2013 +0200

    atksocket: Fix typo - parameter is _obj not obj. Set freed to NULL.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=699368

 atk/atksocket.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/atk/atksocket.c b/atk/atksocket.c
index 15c1e31..cf36377 100644
--- a/atk/atksocket.c
+++ b/atk/atksocket.c
@@ -47,9 +47,10 @@ atk_socket_class_init (AtkSocketClass* klass)
 static void
 atk_socket_finalize (GObject *_obj)
 {
-  AtkSocket *obj = ATK_SOCKET (obj);
+  AtkSocket *obj = ATK_SOCKET (_obj);
 
   g_free (obj->embedded_plug_id);
+  obj->embedded_plug_id = NULL;
 
   G_OBJECT_CLASS (atk_socket_parent_class)->finalize (_obj);
 }


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