[pygobject] Use g_strdup() consistently



commit cf81dd66e6387bf27122a71176e91ca39beb6519
Author: Martin Pitt <martinpitt gnome org>
Date:   Thu Apr 4 06:47:56 2013 +0200

    Use g_strdup() consistently
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696650

 gi/pygi-marshal-from-py.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/pygi-marshal-from-py.c b/gi/pygi-marshal-from-py.c
index 1111545..289aff2 100644
--- a/gi/pygi-marshal-from-py.c
+++ b/gi/pygi-marshal-from-py.c
@@ -773,7 +773,7 @@ _pygi_marshal_from_py_unichar (PyGIInvokeState   *state,
 
        size = PyUnicode_GET_SIZE (py_arg);
        py_bytes = PyUnicode_AsUTF8String (py_arg);
-       string_ = strdup(PYGLIB_PyBytes_AsString (py_bytes));
+       string_ = g_strdup(PYGLIB_PyBytes_AsString (py_bytes));
        Py_DECREF (py_bytes);
 
 #if PY_VERSION_HEX < 0x03000000


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