]> saetta.ns0.it Git - libgdaex/commitdiff
In ::save_data_file_in_blob value could be freed by GdaHolder.
authorAndrea Zagli <a.zagli@libero.it>
Thu, 5 Sep 2019 07:00:49 +0000 (09:00 +0200)
committerAndrea Zagli <a.zagli@libero.it>
Thu, 5 Sep 2019 07:00:49 +0000 (09:00 +0200)
src/gdaex.c

index 2334b94b4f4259019a2860802a555f53b71c1ee4..9063fa5265fe9d6bf9ba43f55851a9a3e5e1c41b 100644 (file)
@@ -3613,7 +3613,8 @@ _gdaex_save_data_file_in_blob (GdaEx *gdaex,
                        gda_connection_commit_transaction (gda_con, NULL, NULL);
                }
 
-       if (value != NULL)
+       if (value != NULL
+           && G_IS_VALUE (value))
                {
                        g_value_unset (value);
                }