[pygobject/pygobject-3-8] Use g_strdup() consistently
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/pygobject-3-8] Use g_strdup() consistently
- Date: Thu, 4 Apr 2013 04:50:44 +0000 (UTC)
commit 3d78f705e5db91614aa53a949249bde8b6a31043
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]