Fixed read/write errors reported by valgrind
authorJi-hoon Lee <dalton.lee@samsung.com>
Tue, 9 Jul 2013 15:18:27 +0000 (00:18 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Tue, 9 Jul 2013 15:18:27 +0000 (00:18 +0900)
packaging/libscl-ui.spec
scl/gwes/efl/sclgraphics-efl.cpp
scl/include/sclversion.h
scl/sclcontext.cpp

index eb92596..97e6b80 100644 (file)
@@ -3,7 +3,7 @@
 
 Name:       libscl-ui
 Summary:    A library for developing XML-based software keyboards
-Version:    0.3.6
+Version:    0.3.7
 Release:    1
 Group:      TO BE / FILLED IN
 License:    TO BE / FILLED IN
index 1d5f970..91a3f48 100644 (file)
@@ -506,6 +506,7 @@ CSCLGraphicsImplEfl::draw_text(sclwindow window, const scldrawctx draw_ctx, cons
 #endif
             EFLObject *object = new EFLObject;
             if (object) {
+                object->extracted = FALSE;
                 Evas_Object *window_object = (Evas_Object*)window;
                 if (winctx->is_virtual) {
                     window_object = static_cast<Evas_Object*>(windows->get_base_window());
@@ -762,6 +763,7 @@ CSCLGraphicsImplEfl::draw_rectangle(sclwindow window, const scldrawctx draw_ctx,
 //            evas_object_raise(rectobj);
             evas_object_show(rectobj);
 
+            object->extracted = FALSE;
             object->object = rectobj;
             object->type = EFLOBJECT_RECTANGLE;
             object->position.x = pos_x;
index 24b4d8a..0745469 100644 (file)
@@ -18,7 +18,7 @@
 #ifndef __SCL_VERSION_H__
 #define __SCL_VERSION_H__
 
-#define SCL_VERSION "0.3.6-1"
+#define SCL_VERSION "0.3.7-1"
 
 #endif //__SCL_VERSION_H
 
index fabf982..5b5f4cf 100644 (file)
@@ -78,6 +78,9 @@ CSCLContext::reset()
     m_multi_touch_context.clear();
     m_last_touch_device_id = SCLTOUCHDEVICE_INVALID;
 
+    m_last_pressed_window = SCLWINDOW_INVALID;
+    m_last_pressed_key = NOT_USED;
+
     memset(m_cur_sub_layout, 0x00, sizeof(m_cur_sub_layout));
 }