[libmediaart] extract: Fixed crash in QCoreApplication::applicationFilePath
- From: Andres Gomez <agomez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libmediaart] extract: Fixed crash in QCoreApplication::applicationFilePath
- Date: Thu, 19 Jun 2014 12:29:58 +0000 (UTC)
commit f7317f8fdc21e357393e355e937d98a1b1a769c1
Author: Slava Monich <slava monich jolla com>
Date: Thu Jun 19 15:15:19 2014 +0300
extract: Fixed crash in QCoreApplication::applicationFilePath
QCoreApplication keeps pointers to argv and argc
so they better be static.
https://bugzilla.gnome.org/show_bug.cgi?id=731854
libmediaart/extractqt.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libmediaart/extractqt.cpp b/libmediaart/extractqt.cpp
index 2dabd04..d39ddd7 100644
--- a/libmediaart/extractqt.cpp
+++ b/libmediaart/extractqt.cpp
@@ -53,8 +53,8 @@ static gint max_width_in_bytes = 0;
void
media_art_plugin_init (gint max_width)
{
- int argc = 1;
- char *argv[2] = { (char*) "libmediaart", NULL };
+ static int argc = 1;
+ static char *argv[2] = { (char*) "libmediaart", NULL };
g_return_if_fail (max_width >= 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]