summaryrefslogtreecommitdiff
path: root/liblangtag
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-11-07 16:14:45 +0200
committerTor Lillqvist <tlillqvist@suse.com>2012-11-07 16:45:13 +0200
commit2e7675b21707fc4efd012bda336a88307ecfc6ec (patch)
tree2a2ecf4aab1969e9b548a23d6506b03f34ea526b /liblangtag
parentfd58e9d5a969efa9ef983998d4a40f301c7ff695 (diff)
Must not call lt_mem_add_ref() with a NULL pointer
Otherwise will get the lt-mem.c: line 216: assertion `p != ((void *)0)' failed message. Change-Id: Ic585ad638211fda66a54725c5a4bd041499349ef
Diffstat (limited to 'liblangtag')
-rw-r--r--liblangtag/liblangtag-0.4.0-windows.patch8
1 files changed, 7 insertions, 1 deletions
diff --git a/liblangtag/liblangtag-0.4.0-windows.patch b/liblangtag/liblangtag-0.4.0-windows.patch
index f922cabf2819..fef4a486f14f 100644
--- a/liblangtag/liblangtag-0.4.0-windows.patch
+++ b/liblangtag/liblangtag-0.4.0-windows.patch
@@ -176,7 +176,7 @@
#include <stdlib.h>
#include "lt-list.h"
#include "lt-mem.h"
-@@ -120,9 +120,13 @@
+@@ -120,13 +120,18 @@
d->message = lt_strdup_vprintf(message, ap);
va_end(ap);
@@ -190,6 +190,12 @@
d->stack_size = size;
lt_mem_add_ref(&d->parent, d->message, free);
+- lt_mem_add_ref(&d->parent, d->traces, free);
++ if (d->traces != NULL)
++ lt_mem_add_ref(&d->parent, d->traces, free);
+
+ allocated = (*error)->data == NULL;
+ (*error)->data = lt_list_append((*error)->data, d, (lt_destroy_func_t)lt_mem_unref);
--- misc/liblangtag-0.4.0/liblangtag/lt-ext-module.c
+++ misc/build/liblangtag-0.4.0/liblangtag/lt-ext-module.c
@@ -15,11 +15,15 @@