[gjs] arg: Remove byte array fast path for now



commit a2160ffa92fd290279a9dee872ca360d84773f93
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Jan 22 18:50:33 2014 -0500

    arg: Remove byte array fast path for now
    
    This isn't a complete fix, as release_arg_internal will try to free
    arg->v_pointer as well. Just remove the fastpath for now...

 gi/arg.cpp |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gi/arg.cpp b/gi/arg.cpp
index b13c412..f10def2 100644
--- a/gi/arg.cpp
+++ b/gi/arg.cpp
@@ -1688,10 +1688,6 @@ gjs_value_to_g_argument(JSContext      *context,
                 if (array_type == GI_ARRAY_TYPE_BYTE_ARRAY) {
                     arg->v_pointer = gjs_byte_array_get_byte_array(context, bytearray_obj);
                     break;
-                } else if (array_type == GI_ARRAY_TYPE_C && 
-                           (element_type == GI_TYPE_TAG_UINT8 || element_type == GI_TYPE_TAG_INT8)) {
-                    gjs_byte_array_peek_data(context, bytearray_obj, (guint8**) &data, &length);
-                    bytearray_fastpath = TRUE;
                 } else {
                     /* Fall through, !handled */
                 }


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